用于分析和单步调试代码的工具?
最近,我遇到了一个工具,它可以分析正在运行的 python 代码,并生成类似于代码编辑器的可视化表示,允许人们单步执行代码的不同部分,查看每个部分被调用的次数、执行时间等
。无法再次找到对其的引用。有人知道它可能是什么吗?
Recently I came across a tool which could analyse running python code and produced a visual representation similar to a code editor to allow one to step through the different parts of the code, seeing how many times each part was called, execution time, etc.
I can't find the reference to it again. Would anyone know what it might be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
cProfile 或 Hotshot。
cProfile or Hotshot.
RunSnakeRun 是 cProfile/Hotshot 的用户界面(请参阅James 的回答),它还提供了可视化的分析数据。
另一个有用的链接可能是PyCon2009演讲Python简介的链接分析 (#65)
RunSnakeRun is user interface for cProfile/Hotshot (see James' answer), which also provides a visualization of the profiling data.
Another useful link might be the link to the PyCon2009 Talk Introduction to Python Profiling (#65)
找到了我要找的内容:Code Investigator
Found what I was looking for: Code Investigator
NetBeans 带有 python 插件吗?
NetBeans with python plug-in?
也许Python 调用图?
Maybe Python Call Graph?