我应该使用哪些工具来分析窗口7上的Python代码

lem*_*ant 9 python windows profiling cprofile python-2.7

我想在Widnows 7上描述python代码.我想使用比cProfile的原始转储更友好的东西.在那次搜索中,我找到了GUI RunSnakeRun,但我找不到在Windows上下载RunSnakeRun的方法.是否可以在Windows上使用RunSnakeRun或我可以使用其他工具?

编辑:我现在已经安装了RunSnakeRun.这是进步,谢谢你们.如何在没有linux命令行的情况下运行它?

编辑2:我正在使用这个教程http://sullivanmatas.wordpress.com/2013/02/03/profiling-python-scripts-with-runsnakerun/但我在最后一行挂了"python:无法打开文件'runsnake.py':[Errno 2]没有这样的文件或目录"

lem*_*ant 2

标准解决方案是使用 cProfile(位于标准库中),然后在 RunSnakeRun 中打开配置文件: http ://www.vrplumber.com/programming/runsnakerun/

cProfile,但是仅在每个功能级别进行配置文件。如果您想要逐行分析,请尝试行分析器: https://github.com/rkern/line_profiler