PoC: feat(profiling): add heap-live profiling for memory leak detection#3623
PoC: feat(profiling): add heap-live profiling for memory leak detection#3623realFlowControl wants to merge 1 commit intomasterfrom
Conversation
|
Track allocations that survive across profile exports using heap-live-samples and heap-live-size sample types. Samples are emitted in batches at export time. Enabled via DD_PROFILING_HEAP_LIVE_ENABLED when allocation profiling is active. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Benchmarks [ profiler ]Benchmark execution time: 2026-02-04 21:17:07 Comparing candidate commit 817465a in PR branch Found 1 performance improvements and 3 performance regressions! Performance is the same for 26 metrics, 6 unstable metrics. scenario:php-profiler-exceptions-with-profiler
scenario:php-profiler-exceptions-with-profiler-and-timeline
scenario:walk_stack/1
|
bc087f2 to
817465a
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3623 +/- ##
==========================================
- Coverage 62.21% 62.20% -0.02%
==========================================
Files 141 141
Lines 13387 13387
Branches 1753 1753
==========================================
- Hits 8329 8327 -2
- Misses 4260 4263 +3
+ Partials 798 797 -1 see 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Warning
do not merge, this is PoC
Description
Track allocations that survive across profile exports using
heap-live-samplesandheap-live-sizesample types. Samples are emitted in batches at export time.Enable via
DD_PROFILING_HEAP_LIVE_ENABLEDordatadog.profiling.heap_live_enabled(default disabled), only works when allocation profiling is active.Reviewer checklist