Home / Companies / Datadog / Blog / Post Details
Content Deep Dive

How we wrote a Python profiler

Blog post from Datadog

Post Details
Company
Date Published
Author
Julien Danjou
Word Count
1,572
Language
English
Hacker News Points
-
Summary

The Datadog team has launched a Continuous Profiler product that targets Java and Python languages. The profiler is designed to be always-on and provides insight into application behavior, unlike traditional profiling tools like `cProfile` in Python. Statistical profiling is used instead of deterministic profiling due to the latter's high overhead. The Datadog Python Profiler is built with a focus on low overhead and simplicity, using components such as collectors, exporters, and a scheduler. It supports various data collectors, including a stack collector that measures CPU time and memory allocations, and exports data in the pprof format. The profiler aims to provide a great experience for continuous profiling in Python, making it an exciting development in the field of software performance analysis.