TE
科技回声
首页
24小时热榜
最新
最佳
问答
展示
工作
中文
GitHub
Twitter
首页
Line-by-line memory usage of a Python program
130 点
作者
vgnet
大约 13 年前
4 条评论
lclarkmichalek
大约 13 年前
Collapse
Pretty sure forking a process every line is not the most efficient way to do this :) But nether the less, very cool
评论 #3888800 未加载
评论 #3888340 未加载
beambot
大约 13 年前
Collapse
Cool. I didn't know that you could get a representation of a function's code through func_name.func_code. That's pretty slick!
评论 #3888628 未加载
评论 #3888098 未加载
评论 #3888045 未加载
a235
大约 13 年前
Really neat solution, useful for straightforward things. However, it's quite far from telling us the full truth. Python won't release memory instantly and there will be some free memory that can be reused but won't ever be reused (int arrays?)
andreasvc
大约 13 年前
Another Python memory profiler: <a href="http://guppy-pe.sourceforge.net/#Heapy" rel="nofollow">http://guppy-pe.sourceforge.net/#Heapy</a>