profiling.tracing — Deterministic profiler — Python 3.16.0a0 documentation

docs.python.org

Tin mới

profiling — Python profilers

profiling.sampling — Statistical profiler

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Debugging and profiling

pstats: Statistics object for analyzing profiler output.

Write the profile results to a file instead of standard output. The output file can be read by the pstats module for later analysis.

profile: Pure Python profiler (deprecated). (deprecated)

time: Time access and conversions.

The Profile class accepts a custom timing function, allowing you to measure different aspects of execution such as wall-clock time or CPU time. Pass the timing function to the constructor: