python.exe进程内存占用多少

python.exe进程内存占用多少,第1张

pip install memory_profiler

pip install psutil

pip install matplotlib

使用方法

from memory_profiler import profile

@profile(precision=4, stream=open('test.log', 'w+'))

def test(args: List):

...

运行:

python3 test.py

Mem usage:表示执行该行后Python解释器的内存使用情况

Increment:表示当前行的内存相对于上一行的差异,即自己本身增长了多少,如果减少了则不显示.


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/12141429.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-21
下一篇 2023-05-21

发表评论

登录后才能评论

评论列表(0条)

保存