Datadog

How we wrote a Python profiler | Datadog

Oct 7, 2020Julien Danjou
How we wrote a Python profiler | Datadog
SummaryAI, from the source post

Datadog built a statistical profiler for Python to address the limitations of deterministic profilers like cProfile for production environments. The profiler is designed with minimal overhead and simple deployment, comprising a recorder, collectors (stack, memory, lock), an exporter using the pprof format, and a scheduler. The stack collector, partially written in C with Cython, gathers execution stack information for Python threads and dynamically adjusts its polling rate to manage CPU overhead. Memory and lock collectors are also included to track allocations and lock contention.

More from the Java CPU Profiling trail