导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • zh_CN 3.7.4 文档 »
  • Python 标准库 »
  • |

调试和分析¶

这些库可以帮助你进行Python开发:调试器使你能够逐步执行代码,分析堆栈帧并设置断点等,而分析器运行代码并为你提供执行时间的详细分类,从而使你能够找出你程序中的瓶颈。

  • 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
    • 示例
  • pdb --- Python的调试器
    • 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 --- 测量小代码片段的执行时间
    • 基本示例
    • Python 接口
    • 命令行界面
    • 示例
  • trace --- Trace or track Python statement execution
    • Command-Line Usage
      • Main options
      • Modifiers
      • Filters
    • Programmatic Interface
  • tracemalloc --- Trace memory allocations
    • 示例
      • Display the top 10
      • Compute differences
      • Get the traceback of a memory block
      • Pretty top
    • API
      • 函数
      • DomainFilter
      • Filter
      • Frame
      • Snapshot
      • Statistic
      • StatisticDiff
      • Trace
      • Traceback

上一个主题

test --- Regression tests package for Python

下一个主题

bdb --- Debugger framework

本页

  • 提交 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • zh_CN 3.7.4 文档 »
  • Python 标准库 »
  • |
© 版权所有 2001-2019, Python Software Foundation.
Python 软件基金会是一个非盈利组织。 请捐助。
最后更新于 7月 25, 2019. 发现了问题?
使用Sphinx2.0.1 创建。