/plushcap/analysis/datadog/engineering-how-we-wrote-a-python-profiler

How we wrote a Python Profiler

What's this blog post about?

Last year, Datadog started building a Continuous Profiler product, with the first languages being Java and Python. Java has profiling tools built into its Virtual Machine, while Python does not have comparable tools. Profiling is a form of dynamic program analysis that measures software resource usage, such as CPU time or memory allocation. It differs from tracing, which provides detailed timelines of application execution but offers little insight into code-level behavior and performance in the operating system. Datadog's Python profiler uses statistical profiling to observe a program's activity intermittently, offering a trustworthy representation of resource consumption with low overhead. The profiler consists of components such as recorders, collectors, exporters, and schedulers, designed for simplicity and compatibility across environments.

Company
Datadog

Date published
Oct. 7, 2020

Author(s)
Julien Danjou

Word count
1557

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.