<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuhiro-me</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuhiro-me/</author_url>
  <blog_title>みーのぺーじ</blog_title>
  <blog_url>https://pc.atsuhiro-me.net/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>以下の関数でメモリ使用量(RSS)が取得できます． import platform import resource def get_maxrss() -&gt; float: system = platform.system() r = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss if system == &quot;Darwin&quot;: return r / 1024 / 1024 # bytes on MacOS return r / 1024 # kilobytes on Linux たまたま手元にあったスクリプトの最後に，この関数を呼び出す処理を加…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2021%2F07%2F20%2F094218&quot; title=&quot;Pythonプロセスのメモリ使用量を取得する - みーのぺーじ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/a/atsuhiro-me/20210720/20210720093033.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-07-20 09:42:18</published>
  <title>Pythonプロセスのメモリ使用量を取得する</title>
  <type>rich</type>
  <url>https://pc.atsuhiro-me.net/entry/2021/07/20/094218</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
