Tachyon
A high-frequency statistical sampling profiler added to the Python 3.15 standard library. It computes function execution time by periodically capturing stack traces of a running process, imposing very low overhead and requiring no prior instrumentation. It replaces capabilities that previously required third-party tools such as py-spy.
Timeline (last 90 days)
Python 3.15 adds the sampling profiler Tachyon (profiling.sampling) to the standard library and renames the existing tracing profiler cProfile to profiling.tracing.
The sampling profiler calculates function time consumption by periodically capturing stack traces of a running process, with extremely low overhead and no need for prior instrumentation, a capability developers previously needed third-party tools such as py-spy to obtain.
Python 3.15 adds a profiling package to unify performance analysis tools, in which profiling.sampling, also known as Tachyon, is a sampling profiler.
A sampling profiler periodically captures call stack snapshots to estimate hot spots, with overhead typically only a few percent, whereas a tracing profiler hooks into every call and return event, with overhead sometimes several times higher.
Tachyon can attach to an already-running Python process via its process ID, and running it on macOS requires sudo privileges.
All Facts (5)
The sampling profiler calculates function time consumption by periodically capturing stack traces of a running process, with extremely low overhead and no need for prior instrumentation, a capability developers previously needed third-party tools such as py-spy to obtain.
50%UnverifiedA sampling profiler periodically captures call stack snapshots to estimate hot spots, with overhead typically only a few percent, whereas a tracing profiler hooks into every call and return event, with overhead sometimes several times higher.
50%UnverifiedTachyon can attach to an already-running Python process via its process ID, and running it on macOS requires sudo privileges.
50%UnverifiedPython 3.15 adds the sampling profiler Tachyon (profiling.sampling) to the standard library and renames the existing tracing profiler cProfile to profiling.tracing.
50%UnverifiedPython 3.15 adds a profiling package to unify performance analysis tools, in which profiling.sampling, also known as Tachyon, is a sampling profiler.
50%