企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](bdb.xhtml "bdb --- Debugger framework") | - [上一页](test.xhtml "test --- Regression tests package for Python") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - [Python 标准库](index.xhtml) » - $('.inline-search').show(0); | # 调试和分析 这些库可以帮助你进行Python开发:调试器使你能够逐步执行代码,分析堆栈帧并设置断点等,而分析器运行代码并为你提供执行时间的详细分类,从而使你能够找出你程序中的瓶颈。 - [`bdb` --- Debugger framework](bdb.xhtml) - [`faulthandler` --- Dump the Python traceback](faulthandler.xhtml) - [Dumping the traceback](faulthandler.xhtml#dumping-the-traceback) - [Fault handler state](faulthandler.xhtml#fault-handler-state) - [Dumping the tracebacks after a timeout](faulthandler.xhtml#dumping-the-tracebacks-after-a-timeout) - [Dumping the traceback on a user signal](faulthandler.xhtml#dumping-the-traceback-on-a-user-signal) - [Issue with file descriptors](faulthandler.xhtml#issue-with-file-descriptors) - [示例](faulthandler.xhtml#example) - [`pdb` --- The Python Debugger](pdb.xhtml) - [Debugger Commands](pdb.xhtml#debugger-commands) - [The Python Profilers](profile.xhtml) - [Introduction to the profilers](profile.xhtml#introduction-to-the-profilers) - [Instant User's Manual](profile.xhtml#instant-user-s-manual) - [`profile` and `cProfile` Module Reference](profile.xhtml#module-cProfile) - [The `Stats` Class](profile.xhtml#the-stats-class) - [What Is Deterministic Profiling?](profile.xhtml#what-is-deterministic-profiling) - [Limitations](profile.xhtml#limitations) - [Calibration](profile.xhtml#calibration) - [Using a custom timer](profile.xhtml#using-a-custom-timer) - [`timeit` --- 测量小代码片段的执行时间](timeit.xhtml) - [基本示例](timeit.xhtml#basic-examples) - [Python 接口](timeit.xhtml#python-interface) - [命令行界面](timeit.xhtml#command-line-interface) - [示例](timeit.xhtml#examples) - [`trace` --- Trace or track Python statement execution](trace.xhtml) - [Command-Line Usage](trace.xhtml#command-line-usage) - [Main options](trace.xhtml#main-options) - [Modifiers](trace.xhtml#modifiers) - [Filters](trace.xhtml#filters) - [Programmatic Interface](trace.xhtml#programmatic-interface) - [`tracemalloc` --- Trace memory allocations](tracemalloc.xhtml) - [示例](tracemalloc.xhtml#examples) - [Display the top 10](tracemalloc.xhtml#display-the-top-10) - [Compute differences](tracemalloc.xhtml#compute-differences) - [Get the traceback of a memory block](tracemalloc.xhtml#get-the-traceback-of-a-memory-block) - [Pretty top](tracemalloc.xhtml#pretty-top) - [API](tracemalloc.xhtml#api) - [函数](tracemalloc.xhtml#functions) - [DomainFilter](tracemalloc.xhtml#domainfilter) - [Filter](tracemalloc.xhtml#filter) - [Frame](tracemalloc.xhtml#frame) - [Snapshot](tracemalloc.xhtml#snapshot) - [Statistic](tracemalloc.xhtml#statistic) - [StatisticDiff](tracemalloc.xhtml#statisticdiff) - [Trace](tracemalloc.xhtml#trace) - [Traceback](tracemalloc.xhtml#traceback) ### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](bdb.xhtml "bdb --- Debugger framework") | - [上一页](test.xhtml "test --- Regression tests package for Python") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - [Python 标准库](index.xhtml) » - $('.inline-search').show(0); | © [版权所有](../copyright.xhtml) 2001-2019, Python Software Foundation. Python 软件基金会是一个非盈利组织。 [请捐助。](https://www.python.org/psf/donations/) 最后更新于 5月 21, 2019. [发现了问题](../bugs.xhtml)? 使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 创建。