【问题标题】:measure of the use of the memory with python [duplicate]用python衡量内存的使用情况[重复] 【发布时间】:2012-05-11 18:37:11 【问题描述】: 可能重复:Python memory profiler 我编写了一个 python 脚本,它从另一个模块调用函数但使用大量内存。 有没有一个函数可以测量一段代码使用的内存大小? 【问题讨论】: 标签: python memory-management 【解决方案1】: 你试过http://pysizer.8325.org/ 吗? 还有:http://guppy-pe.sourceforge.net/#Heapy 【讨论】: