mirror of
https://github.com/python/cpython.git
synced 2025-10-20 00:13:47 +00:00
14 lines
421 B
Python
14 lines
421 B
Python
![]() |
"""Python profiling tools.
|
||
|
|
||
|
This package provides two types of profilers:
|
||
|
|
||
|
- profiling.tracing: Deterministic tracing profiler that instruments every
|
||
|
function call and return. Higher overhead but provides exact call counts
|
||
|
and timing.
|
||
|
|
||
|
- profiling.sampling: Statistical sampling profiler that periodically samples
|
||
|
the call stack. Low overhead and suitable for production use.
|
||
|
"""
|
||
|
|
||
|
__all__ = ("tracing", "sampling")
|