Debugging and profiling¶
ここに含まれるライブラリは Python での開発を手助けするものです。デバッガを使うと、コードのステップ実行や、スタックフレームの解析、ブレークポイントの設定などができます。プロファイラはコードを実行して実行時間の詳細を提供し、プログラムのボトルネックを特定できるようにします。
- 監査イベント表
bdb--- デバッガーフレームワークfaulthandler--- Python トレースバックをダンプするpdb--- Python デバッガprofiling--- Python profilers- Introduction to profiling
- Choosing a profiler
- Quick start
- Understanding profile output
- Legacy compatibility
pstats--- Statistics for profilerstimeit--- 小さなコードスニペットの実行時間計測trace--- Python 文実行のトレースと追跡tracemalloc--- メモリ割り当ての追跡