Python 的guppy模块检测内存

1.安装pip install guppy

2.获取hpy()

profile=hpy()
print profile.heap()
3.检测固定函数的内存消耗

输出



猜你喜欢

转载自blog.csdn.net/douyunqian668/article/details/79865623