【发布时间】:2012-05-06 19:16:21
【问题描述】:
我正在使用python -m cProfile -s calls myscript.py
python -m cProfile -s percall myscript.py 不起作用。
Python 文档说“在 Stats 文档中查找有效的排序值。”:http://docs.python.org/library/profile.html#module-cProfile,我找不到。
【问题讨论】:
-
也可以看看snakeviz:stackoverflow.com/questions/1593019/…
-
不幸的是,有一个补丁被忽略了:bugs.python.org/issue18795