瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python »
  • zh_TW 3.8.0rc1 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • |

Debugging and Profiling¶

这些库可以帮助你进行 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
    • 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
    • 基礎範例
    • Python 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
    • API
      • Functions
      • DomainFilter
      • Filter
      • Frame
      • Snapshot
      • Statistic
      • StatisticDiff
      • Trace
      • Traceback

上個主題

test --- Regression tests package for Python

下個主題

审计事件表

本頁

  • Report a Bug
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python »
  • zh_TW 3.8.0rc1 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • |
© 版權所有 2001-2019, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.

最後更新於 10月 14, 2019。 Found a bug?
Created using Sphinx 2.0.1.