Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 如何分析 Python 脚本?
你知道哪些可视化工具,类似于 JProfiler for Java,用于分析 Python 应用程序的性能?
您可以使用cProfile或profile来分析您的代码。
cProfile
profile
如果您需要内存分析,您可以使用guppy.
guppy