27. Debugging and Profiling - Python 3.6.15 documentation 编辑
These libraries help you with Python development: the debugger enables you to step through code, analyze stack frames and set breakpoints etc., and the profilers run code and give you a detailed breakdown of execution times, allowing you to identify bottlenecks in your programs.
- 27.1.
bdb
— Debugger framework - 27.2.
faulthandler
— Dump the Python traceback - 27.3.
pdb
— The Python Debugger - 27.4. The Python Profilers
- 27.5.
timeit
— Measure execution time of small code snippets - 27.6.
trace
— Trace or track Python statement execution - 27.7.
tracemalloc
— Trace memory allocations
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论