{"categories":["Python"],"description":"\u4ee5\u4e0b\u306e\u95a2\u6570\u3067\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf(RSS)\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\uff0e import platform import resource def get_maxrss() -> float: system = platform.system() r = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss if system == \"Darwin\": return r / 1024 / 1024 # bytes on MacOS return r / 1024 # kilobytes on Linux \u305f\u307e\u305f\u307e\u624b\u5143\u306b\u3042\u3063\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u6700\u5f8c\u306b\uff0c\u3053\u306e\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u51e6\u7406\u3092\u52a0\u2026","type":"rich","blog_title":"\u307f\u30fc\u306e\u307a\u30fc\u3058","author_name":"atsuhiro-me","author_url":"https://blog.hatena.ne.jp/atsuhiro-me/","blog_url":"https://pc.atsuhiro-me.net/","published":"2021-07-20 09:42:18","width":"100%","title":"Python\u30d7\u30ed\u30bb\u30b9\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3092\u53d6\u5f97\u3059\u308b","version":"1.0","url":"https://pc.atsuhiro-me.net/entry/2021/07/20/094218","provider_url":"https://hatena.blog","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2021%2F07%2F20%2F094218\" title=\"Python\u30d7\u30ed\u30bb\u30b9\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3092\u53d6\u5f97\u3059\u308b - \u307f\u30fc\u306e\u307a\u30fc\u3058\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/a/atsuhiro-me/20210720/20210720093033.png"}