[KongchangAI]
Productprofiling.sampling

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)

Oct 12

Python 3.15 adds the sampling profiler Tachyon (profiling.sampling) to the standard library and renames the existing tracing profiler cProfile to profiling.tracing.

Unverified50%
Oct 12

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.

Unverified50%
Oct 4

Python 3.15 adds a profiling package to unify performance analysis tools, in which profiling.sampling, also known as Tachyon, is a sampling profiler.

Unverified50%
Oct 4

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.

Unverified50%
Oct 4

Tachyon can attach to an already-running Python process via its process ID, and running it on macOS requires sudo privileges.

Unverified50%

All Facts (5)

Source Articles