This document is for an old version of Python that is no longer supported. You should upgrade and read the Python 当前稳定版本的文档.

导航

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

26. 调试和分析¶

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

  • 26.1. bdb — Debugger framework
  • 26.2. pdb — Python的调试器
  • 26.3. 调试器命令
  • 26.4. Python 分析器
    • 26.4.1. 分析器简介
    • 26.4.2. 即时用户手册
    • 26.4.3. profile 和 cProfile 模块参考
    • 26.4.4. Stats 类
    • 26.4.5. 什么是确定性性能分析?
    • 26.4.6. 局限性
    • 26.4.7. 准确估量
    • 26.4.8. 使用自定义计时器
  • 26.5. hotshot — High performance logging profiler
    • 26.5.1. Profile Objects
    • 26.5.2. Using hotshot data
    • 26.5.3. Example Usage
  • 26.6. timeit — 测量小代码片段的执行时间
    • 26.6.1. 基本示例
    • 26.6.2. Python 接口
    • 26.6.3. 命令行界面
    • 26.6.4. 例子
  • 26.7. trace — Trace or track Python statement execution
    • 26.7.1. Command-Line Usage
      • 26.7.1.1. Main options
      • 26.7.1.2. Modifiers
      • 26.7.1.3. Filters
    • 26.7.2. 编程接口

上一个主题

25.5. test — Python回归测试包

下一个主题

26.1. bdb — Debugger framework

本页

  • 显示源代码

快速搜索

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • Python 2.7.18 文档 »
  • Python 标准库 »
© 版权所有 1990-2020, Python Software Foundation.
Python 软件基金会是一个非盈利组织。 请捐助。
Last updated on 6月 19, 2020. 发现了问题?
使用Sphinx2.3.1 创建。