可能重复:
How can you profile a Python script?
您知道哪些类似于JProfiler for的可视化工具来分析Python的性能?
发布于 2010-12-15 17:12:12
您可以使用cProfile或profile来分析代码。
cProfile
profile
如果需要内存分析,可以使用guppy。
guppy
https://stackoverflow.com/questions/4452732
相似问题