Python logo

上一主题

test --- Regression tests package for Python

下一主题

Audit events table

This page

  • Report a bug
  • Show source

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.13.7 Documentation »
  • The Python Standard Library »
  • Debugging and Profiling
  • |
  • |

Debugging and Profiling¶

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. Auditing events provide visibility into runtime behaviors that would otherwise require intrusive debugging or patching.

  • Audit events table
  • bdb --- Debugger framework
  • faulthandler --- Dump the Python traceback
    • Dumping the traceback
    • Fault handler state
    • Dumping the tracebacks after a timeout
    • Dumping the traceback on a user signal
    • Issue with file descriptors
    • Example
  • pdb --- The Python Debugger
    • Debugger Commands
  • The Python Profilers
    • Introduction to the profilers
    • Instant User's Manual
    • profile and cProfile Module Reference
    • The Stats Class
    • What Is Deterministic Profiling?
    • Limitations
    • Calibration
    • Using a custom timer
  • timeit --- Measure execution time of small code snippets
    • Basic Examples
    • Python Interface
    • Command-Line Interface
    • Examples
  • trace --- Trace or track Python statement execution
    • Command-Line Usage
      • Main options
      • Modifiers
      • Filters
    • Programmatic Interface
  • tracemalloc --- Trace memory allocations
    • Examples
      • Display the top 10
      • Compute differences
      • Get the traceback of a memory block
      • Pretty top
        • Record the current and peak size of all traced memory blocks
    • API
      • Functions
      • DomainFilter
      • Filter
      • Frame
      • Snapshot
      • Statistic
      • StatisticDiff
      • Trace
      • Traceback

上一主题

test --- Regression tests package for Python

下一主题

Audit events table

This page

  • Report a bug
  • Show source
«

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.13.7 Documentation »
  • The Python Standard Library »
  • Debugging and Profiling
  • |
  • |
© 版权 2001-2025, Python Software Foundation.
本页面采用 Python 软件基金会许可证第 2 版授权。
文档中的示例、代码片段及其他代码内容额外采用零条款 BSD 许可证授权。
更多信息请参阅《 历史与许可 》。

Python 软件基金会是一家非营利性公司。 请进行捐赠。

最后更新于10月 08, 2025 (08:20 UTC) 。 发现了错误?
使用Sphinx 8.2.3 创建。