Skip to content

Conversation

@alyshawang
Copy link
Contributor

@alyshawang alyshawang commented Jul 14, 2025

This PR unifies the Python memory profiler's allocation and live heap profilers into a single, consistent, sampling-based system. Previously, both profilers operated independently with separate implementations, overlapping functionality, and distinct data paths. This change replaces the older allocation profiler logic with an enhanced version of the heap profiler that:

  • Tracks both live allocations and freed-but-unreported allocations in one place.
  • Produces enriched samples that include: in_use flag (is this allocation still alive?), reported flag (has this sample been reported before?), count (scaling factor for probabilistic allocation count)
  • Fully removes the legacy iter_events() and its global_alloc_tracker-based sampling.

These changes were made to remove redundant sampling code. As well, sizes and counts of objects allocated are reported with more accuracy and less overhead. Now ENV: DD_PROFILING_MAX_EVENTS is deprecated and does nothing, use DD_PROFILING_HEAP_SAMPLE_SIZE instead to control sampling frequency of the memory profiler.

This PR also removes a debug-only GIL release in traceback_free. It is unsafe to release the GIL during PyObject_Free, since it can be called during clean up of interpreter data structures, leaving those structures in an inconsistent state if other Python threads are allowed to run. The debug-only release was causing crashes during testing of this PR unrelated to the correctness of the code.

This was tested end to end with a service along with additional unit tests. These tests verify edge cases with more complex allocation patterns while maintaining accuracy using tracemalloc as the ground truth.

PROF-12068

Checklist

  • PR author has checked that all the criteria below are met
  • The PR description includes an overview of the change
  • The PR description articulates the motivation for the change
  • The change includes tests OR the PR description describes a testing strategy
  • The PR description notes risks associated with the change, if any
  • Newly-added code is easy to change
  • The change follows the library release note guidelines
  • The change includes or references documentation updates if necessary
  • Backport labels are set (if applicable)

Reviewer Checklist

  • Reviewer has checked that all the criteria below are met
  • Title is accurate
  • All changes are related to the pull request's stated goal
  • Avoids breaking API changes
  • Testing strategy adequately addresses listed risks
  • Newly-added code is easy to change
  • Release note makes sense to a user of the library
  • If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment
  • Backport labels are set in a manner that is consistent with the release branch maintenance policy

@alyshawang alyshawang requested a review from a team as a code owner July 14, 2025 17:43
@github-actions
Copy link
Contributor

github-actions bot commented Jul 14, 2025

CODEOWNERS have been resolved as:

releasenotes/notes/memory_profiler_unification-6478c2656a7adbfd.yaml    @DataDog/apm-python
ddtrace/profiling/collector/_memalloc.c                                 @DataDog/profiling-python
ddtrace/profiling/collector/_memalloc.pyi                               @DataDog/profiling-python
ddtrace/profiling/collector/_memalloc_heap.c                            @DataDog/profiling-python
ddtrace/profiling/collector/_memalloc_heap_map.c                        @DataDog/profiling-python
ddtrace/profiling/collector/_memalloc_heap_map.h                        @DataDog/profiling-python
ddtrace/profiling/collector/_memalloc_tb.c                              @DataDog/profiling-python
ddtrace/profiling/collector/_memalloc_tb.h                              @DataDog/profiling-python
ddtrace/profiling/collector/memalloc.py                                 @DataDog/profiling-python
tests/profiling/collector/test_memalloc.py                              @DataDog/profiling-python
tests/profiling_v2/collector/test_memalloc.py                           @DataDog/profiling-python

@nsrip-dd nsrip-dd marked this pull request as draft July 14, 2025 17:51
@github-actions
Copy link
Contributor

github-actions bot commented Jul 14, 2025

Bootstrap import analysis

Comparison of import times between this PR and base.

Summary

The average import time from this PR is: 283 ± 3 ms.

The average import time from base is: 285 ± 3 ms.

The import time difference between this PR and base is: -2.1 ± 0.1 ms.

Import time breakdown

The following import paths have shrunk:

ddtrace.auto 1.993 ms (0.70%)
ddtrace.bootstrap.sitecustomize 1.316 ms (0.46%)
ddtrace.bootstrap.preload 1.316 ms (0.46%)
ddtrace.internal.remoteconfig.client 0.641 ms (0.23%)
ddtrace 0.677 ms (0.24%)
ddtrace.internal._unpatched 0.031 ms (0.01%)
json 0.031 ms (0.01%)
json.decoder 0.031 ms (0.01%)
re 0.031 ms (0.01%)
enum 0.031 ms (0.01%)
types 0.031 ms (0.01%)

@pr-commenter
Copy link

pr-commenter bot commented Jul 15, 2025

Benchmarks

Benchmark execution time: 2025-07-16 21:00:27

Comparing candidate commit 003755b in PR branch alysha.wang/memory_profiler_unification with baseline commit e0a772c in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 370 metrics, 2 unstable metrics.

@pr-commenter
Copy link

pr-commenter bot commented Jul 17, 2025

Performance SLOs

Candidate: alysha.wang/memory_profiler_unification (34b9254)

🔵 No Baseline Data (24 suites)
🔵 coreapiscenario - 12/12 (2 unstable)

🔵 No baseline data available for this suite

⚠️ context_with_data_listeners

Time: ⚠️ 13.941µs (SLO: <20.000µs 📉 -30.3%)

Memory: ✅ 28.685MB (SLO: <31.000MB -7.5%)


✅ context_with_data_no_listeners

Time: ✅ 3.846µs (SLO: <10.000µs 📉 -61.5%)

Memory: ✅ 28.685MB (SLO: <31.000MB -7.5%)


⚠️ context_with_data_only_all_listeners

Time: ⚠️ 13.875µs (SLO: <20.000µs 📉 -30.6%)

Memory: ✅ 28.685MB (SLO: <31.000MB -7.5%)


✅ get_item_exists

Time: ✅ 0.630µs (SLO: <10.000µs 📉 -93.7%)

Memory: ✅ 28.685MB (SLO: <31.000MB -7.5%)


✅ get_item_missing

Time: ✅ 0.687µs (SLO: <10.000µs 📉 -93.1%)

Memory: ✅ 28.685MB (SLO: <31.000MB -7.5%)


✅ set_item

Time: ✅ 24.527µs (SLO: <30.000µs 📉 -18.2%)

Memory: ✅ 28.705MB (SLO: <31.000MB -7.4%)


🔵 djangosimple - 22/22

🔵 No baseline data available for this suite

✅ appsec

Time: ✅ 21.277ms (SLO: <22.300ms -4.6%)

Memory: ✅ 63.740MB (SLO: <65.500MB -2.7%)


✅ exception-replay-enabled

Time: ✅ 1.363ms (SLO: <1.450ms -6.0%)

Memory: ✅ 63.111MB (SLO: <65.500MB -3.6%)


✅ iast

Time: ✅ 21.236ms (SLO: <22.250ms -4.6%)

Memory: ✅ 63.721MB (SLO: <65.500MB -2.7%)


✅ profiler

Time: ✅ 15.252ms (SLO: <16.550ms -7.8%)

Memory: ✅ 51.143MB (SLO: <53.000MB -3.5%)


✅ span-code-origin

Time: ✅ 27.016ms (SLO: <28.200ms -4.2%)

Memory: ✅ 65.975MB (SLO: <68.000MB -3.0%)


✅ tracer

Time: ✅ 21.228ms (SLO: <22.700ms -6.5%)

Memory: ✅ 63.721MB (SLO: <65.500MB -2.7%)


✅ tracer-and-profiler

Time: ✅ 22.989ms (SLO: <24.900ms -7.7%)

Memory: ✅ 65.136MB (SLO: <67.000MB -2.8%)


✅ tracer-no-caches

Time: ✅ 18.831ms (SLO: <19.650ms -4.2%)

Memory: ✅ 63.760MB (SLO: <65.500MB -2.7%)


✅ tracer-no-databases

Time: ✅ 19.175ms (SLO: <20.100ms -4.6%)

Memory: ✅ 63.701MB (SLO: <65.500MB -2.7%)


✅ tracer-no-middleware

Time: ✅ 21.027ms (SLO: <22.500ms -6.5%)

Memory: ✅ 63.701MB (SLO: <65.500MB -2.7%)


✅ tracer-no-templates

Time: ✅ 21.039ms (SLO: <22.250ms -5.4%)

Memory: ✅ 63.701MB (SLO: <65.500MB -2.7%)


🔵 errortrackingdjangosimple - 6/6

🔵 No baseline data available for this suite

✅ errortracking-enabled-all

Time: ✅ 18.523ms (SLO: <19.850ms -6.7%)

Memory: ✅ 63.721MB (SLO: <65.500MB -2.7%)


✅ errortracking-enabled-user

Time: ✅ 18.479ms (SLO: <19.400ms -4.7%)

Memory: ✅ 63.701MB (SLO: <65.500MB -2.7%)


✅ tracer-enabled

Time: ✅ 18.587ms (SLO: <19.450ms -4.4%)

Memory: ✅ 63.701MB (SLO: <65.500MB -2.7%)


🔵 errortrackingflasksqli - 6/6

🔵 No baseline data available for this suite

✅ errortracking-enabled-all

Time: ✅ 2.119ms (SLO: <2.300ms -7.9%)

Memory: ✅ 51.589MB (SLO: <53.000MB -2.7%)


✅ errortracking-enabled-user

Time: ✅ 2.117ms (SLO: <2.250ms -5.9%)

Memory: ✅ 51.629MB (SLO: <53.000MB -2.6%)


✅ tracer-enabled

Time: ✅ 2.111ms (SLO: <2.300ms -8.2%)

Memory: ✅ 51.255MB (SLO: <53.000MB -3.3%)


🔵 flasksimple - 14/14

🔵 No baseline data available for this suite

✅ appsec-get

Time: ✅ 4.609ms (SLO: <4.750ms -3.0%)

Memory: ✅ 63.072MB (SLO: <64.000MB 🟡 -1.5%)


✅ appsec-post

Time: ✅ 6.628ms (SLO: <6.750ms 🟡 -1.8%)

Memory: ✅ 63.190MB (SLO: <64.000MB 🟡 -1.3%)


✅ appsec-telemetry

Time: ✅ 4.613ms (SLO: <4.750ms -2.9%)

Memory: ✅ 63.052MB (SLO: <64.000MB 🟡 -1.5%)


✅ debugger

Time: ✅ 1.857ms (SLO: <2.000ms -7.2%)

Memory: ✅ 42.091MB (SLO: <44.000MB -4.3%)


✅ iast-get

Time: ✅ 1.852ms (SLO: <2.000ms -7.4%)

Memory: ✅ 44.652MB (SLO: <45.000MB 🟡 -0.8%)


✅ profiler

Time: ✅ 1.918ms (SLO: <2.100ms -8.7%)

Memory: ✅ 43.470MB (SLO: <44.000MB 🟡 -1.2%)


✅ tracer

Time: ✅ 3.385ms (SLO: <3.650ms -7.3%)

Memory: ✅ 51.756MB (SLO: <53.000MB -2.3%)


🔵 flasksqli - 6/6

🔵 No baseline data available for this suite

✅ appsec-enabled

Time: ✅ 3.975ms (SLO: <4.200ms -5.4%)

Memory: ✅ 63.524MB (SLO: <66.000MB -3.8%)


✅ iast-enabled

Time: ✅ 2.576ms (SLO: <2.800ms -8.0%)

Memory: ✅ 56.977MB (SLO: <58.000MB 🟡 -1.8%)


✅ tracer-enabled

Time: ✅ 2.103ms (SLO: <2.250ms -6.5%)

Memory: ✅ 51.275MB (SLO: <53.000MB -3.3%)


🔵 httppropagationextract - 60/60

🔵 No baseline data available for this suite

✅ all_styles_all_headers

Time: ✅ 82.553µs (SLO: <100.000µs 📉 -17.4%)

Memory: ✅ 29.216MB (SLO: <31.000MB -5.8%)


✅ b3_headers

Time: ✅ 14.366µs (SLO: <20.000µs 📉 -28.2%)

Memory: ✅ 29.137MB (SLO: <31.000MB -6.0%)


✅ b3_single_headers

Time: ✅ 13.377µs (SLO: <20.000µs 📉 -33.1%)

Memory: ✅ 29.157MB (SLO: <31.000MB -5.9%)


✅ datadog_tracecontext_tracestate_not_propagated_on_trace_id_no_match

Time: ✅ 65.487µs (SLO: <80.000µs 📉 -18.1%)

Memory: ✅ 29.177MB (SLO: <31.000MB -5.9%)


✅ datadog_tracecontext_tracestate_propagated_on_trace_id_match

Time: ✅ 67.803µs (SLO: <80.000µs 📉 -15.2%)

Memory: ✅ 29.275MB (SLO: <31.000MB -5.6%)


✅ empty_headers

Time: ✅ 1.598µs (SLO: <10.000µs 📉 -84.0%)

Memory: ✅ 29.118MB (SLO: <31.000MB -6.1%)


✅ full_t_id_datadog_headers

Time: ✅ 23.758µs (SLO: <30.000µs 📉 -20.8%)

Memory: ✅ 29.275MB (SLO: <31.000MB -5.6%)


✅ invalid_priority_header

Time: ✅ 6.516µs (SLO: <10.000µs 📉 -34.8%)

Memory: ✅ 29.177MB (SLO: <31.000MB -5.9%)


✅ invalid_span_id_header

Time: ✅ 6.516µs (SLO: <10.000µs 📉 -34.8%)

Memory: ✅ 29.216MB (SLO: <31.000MB -5.8%)


✅ invalid_tags_header

Time: ✅ 6.552µs (SLO: <10.000µs 📉 -34.5%)

Memory: ✅ 29.118MB (SLO: <31.000MB -6.1%)


✅ invalid_trace_id_header

Time: ✅ 6.531µs (SLO: <10.000µs 📉 -34.7%)

Memory: ✅ 29.177MB (SLO: <31.000MB -5.9%)


✅ large_header_no_matches

Time: ✅ 27.530µs (SLO: <30.000µs -8.2%)

Memory: ✅ 29.137MB (SLO: <31.000MB -6.0%)


✅ large_valid_headers_all

Time: ✅ 28.666µs (SLO: <40.000µs 📉 -28.3%)

Memory: ✅ 29.157MB (SLO: <31.000MB -5.9%)


✅ medium_header_no_matches

Time: ✅ 9.849µs (SLO: <20.000µs 📉 -50.8%)

Memory: ✅ 29.137MB (SLO: <31.000MB -6.0%)


✅ medium_valid_headers_all

Time: ✅ 11.239µs (SLO: <20.000µs 📉 -43.8%)

Memory: ✅ 29.236MB (SLO: <31.000MB -5.7%)


✅ none_propagation_style

Time: ✅ 1.698µs (SLO: <10.000µs 📉 -83.0%)

Memory: ✅ 29.157MB (SLO: <31.000MB -5.9%)


✅ tracecontext_headers

Time: ✅ 35.424µs (SLO: <40.000µs 📉 -11.4%)

Memory: ✅ 29.177MB (SLO: <31.000MB -5.9%)


✅ valid_headers_all

Time: ✅ 6.535µs (SLO: <10.000µs 📉 -34.7%)

Memory: ✅ 29.236MB (SLO: <31.000MB -5.7%)


✅ valid_headers_basic

Time: ✅ 6.072µs (SLO: <10.000µs 📉 -39.3%)

Memory: ✅ 29.137MB (SLO: <31.000MB -6.0%)


✅ wsgi_empty_headers

Time: ✅ 1.584µs (SLO: <10.000µs 📉 -84.2%)

Memory: ✅ 29.216MB (SLO: <31.000MB -5.8%)


✅ wsgi_invalid_priority_header

Time: ✅ 6.595µs (SLO: <10.000µs 📉 -34.1%)

Memory: ✅ 29.137MB (SLO: <31.000MB -6.0%)


✅ wsgi_invalid_span_id_header

Time: ✅ 1.598µs (SLO: <10.000µs 📉 -84.0%)

Memory: ✅ 29.196MB (SLO: <31.000MB -5.8%)


✅ wsgi_invalid_tags_header

Time: ✅ 6.646µs (SLO: <10.000µs 📉 -33.5%)

Memory: ✅ 29.137MB (SLO: <31.000MB -6.0%)


✅ wsgi_invalid_trace_id_header

Time: ✅ 6.572µs (SLO: <10.000µs 📉 -34.3%)

Memory: ✅ 29.157MB (SLO: <31.000MB -5.9%)


✅ wsgi_large_header_no_matches

Time: ✅ 28.578µs (SLO: <40.000µs 📉 -28.6%)

Memory: ✅ 29.275MB (SLO: <31.000MB -5.6%)


✅ wsgi_large_valid_headers_all

Time: ✅ 29.893µs (SLO: <40.000µs 📉 -25.3%)

Memory: ✅ 29.177MB (SLO: <31.000MB -5.9%)


✅ wsgi_medium_header_no_matches

Time: ✅ 10.166µs (SLO: <20.000µs 📉 -49.2%)

Memory: ✅ 29.216MB (SLO: <31.000MB -5.8%)


✅ wsgi_medium_valid_headers_all

Time: ✅ 11.461µs (SLO: <20.000µs 📉 -42.7%)

Memory: ✅ 29.196MB (SLO: <31.000MB -5.8%)


✅ wsgi_valid_headers_all

Time: ✅ 6.568µs (SLO: <10.000µs 📉 -34.3%)

Memory: ✅ 29.137MB (SLO: <31.000MB -6.0%)


✅ wsgi_valid_headers_basic

Time: ✅ 6.163µs (SLO: <10.000µs 📉 -38.4%)

Memory: ✅ 29.196MB (SLO: <31.000MB -5.8%)


🔵 httppropagationinject - 16/16

🔵 No baseline data available for this suite

✅ ids_only

Time: ✅ 20.082µs (SLO: <30.000µs 📉 -33.1%)

Memory: ✅ 29.157MB (SLO: <31.000MB -5.9%)


✅ with_all

Time: ✅ 34.814µs (SLO: <40.000µs 📉 -13.0%)

Memory: ✅ 29.196MB (SLO: <31.000MB -5.8%)


✅ with_dd_origin

Time: ✅ 26.264µs (SLO: <30.000µs 📉 -12.5%)

Memory: ✅ 29.236MB (SLO: <31.000MB -5.7%)


✅ with_priority_and_origin

Time: ✅ 28.636µs (SLO: <40.000µs 📉 -28.4%)

Memory: ✅ 29.137MB (SLO: <31.000MB -6.0%)


✅ with_sampling_priority

Time: ✅ 22.600µs (SLO: <30.000µs 📉 -24.7%)

Memory: ✅ 29.177MB (SLO: <31.000MB -5.9%)


✅ with_tags

Time: ✅ 28.042µs (SLO: <40.000µs 📉 -29.9%)

Memory: ✅ 29.177MB (SLO: <31.000MB -5.9%)


✅ with_tags_invalid

Time: ✅ 31.384µs (SLO: <40.000µs 📉 -21.5%)

Memory: ✅ 29.236MB (SLO: <31.000MB -5.7%)


✅ with_tags_max_size

Time: ✅ 28.572µs (SLO: <40.000µs 📉 -28.6%)

Memory: ✅ 29.177MB (SLO: <31.000MB -5.9%)


🔵 iast_aspects - 40/40

🔵 No baseline data available for this suite

✅ re_expand_aspect

Time: ✅ 33.081µs (SLO: <40.000µs 📉 -17.3%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_expand_noaspect

Time: ✅ 29.506µs (SLO: <40.000µs 📉 -26.2%)

Memory: ✅ 34.623MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_findall_aspect

Time: ✅ 3.708µs (SLO: <10.000µs 📉 -62.9%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_findall_noaspect

Time: ✅ 1.411µs (SLO: <10.000µs 📉 -85.9%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_finditer_aspect

Time: ✅ 5.125µs (SLO: <10.000µs 📉 -48.7%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_finditer_noaspect

Time: ✅ 1.408µs (SLO: <10.000µs 📉 -85.9%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_fullmatch_aspect

Time: ✅ 3.411µs (SLO: <10.000µs 📉 -65.9%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_fullmatch_noaspect

Time: ✅ 1.280µs (SLO: <10.000µs 📉 -87.2%)

Memory: ✅ 34.623MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_group_aspect

Time: ✅ 3.440µs (SLO: <10.000µs 📉 -65.6%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_group_noaspect

Time: ✅ 1.596µs (SLO: <10.000µs 📉 -84.0%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_groups_aspect

Time: ✅ 3.575µs (SLO: <10.000µs 📉 -64.2%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_groups_noaspect

Time: ✅ 1.681µs (SLO: <10.000µs 📉 -83.2%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_match_aspect

Time: ✅ 3.426µs (SLO: <10.000µs 📉 -65.7%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_match_noaspect

Time: ✅ 1.295µs (SLO: <10.000µs 📉 -87.0%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_search_aspect

Time: ✅ 3.291µs (SLO: <10.000µs 📉 -67.1%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_search_noaspect

Time: ✅ 1.190µs (SLO: <10.000µs 📉 -88.1%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_sub_aspect

Time: ✅ 4.700µs (SLO: <10.000µs 📉 -53.0%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_sub_noaspect

Time: ✅ 1.539µs (SLO: <10.000µs 📉 -84.6%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ re_subn_aspect

Time: ✅ 4.896µs (SLO: <10.000µs 📉 -51.0%)

Memory: ✅ 34.603MB (SLO: <35.500MB -2.5%)


✅ re_subn_noaspect

Time: ✅ 1.593µs (SLO: <10.000µs 📉 -84.1%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


🔵 iastaspects - 118/118

🔵 No baseline data available for this suite

✅ add_aspect

Time: ✅ 0.327µs (SLO: <10.000µs 📉 -96.7%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ add_inplace_aspect

Time: ✅ 0.329µs (SLO: <10.000µs 📉 -96.7%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ add_inplace_noaspect

Time: ✅ 0.319µs (SLO: <10.000µs 📉 -96.8%)

Memory: ✅ 34.623MB (SLO: <35.000MB 🟡 -1.1%)


✅ add_noaspect

Time: ✅ 0.276µs (SLO: <10.000µs 📉 -97.2%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ bytearray_aspect

Time: ✅ 1.822µs (SLO: <10.000µs 📉 -81.8%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ bytearray_extend_aspect

Time: ✅ 1.399µs (SLO: <10.000µs 📉 -86.0%)

Memory: ✅ 34.642MB (SLO: <35.000MB 🟡 -1.0%)


✅ bytearray_extend_noaspect

Time: ✅ 0.611µs (SLO: <10.000µs 📉 -93.9%)

Memory: ✅ 34.623MB (SLO: <35.000MB 🟡 -1.1%)


✅ bytearray_noaspect

Time: ✅ 0.482µs (SLO: <10.000µs 📉 -95.2%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ bytes_aspect

Time: ✅ 1.857µs (SLO: <10.000µs 📉 -81.4%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ bytes_noaspect

Time: ✅ 0.490µs (SLO: <10.000µs 📉 -95.1%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ bytesio_aspect

Time: ✅ 1.888µs (SLO: <10.000µs 📉 -81.1%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ bytesio_noaspect

Time: ✅ 0.495µs (SLO: <10.000µs 📉 -95.1%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ capitalize_aspect

Time: ✅ 0.737µs (SLO: <10.000µs 📉 -92.6%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ capitalize_noaspect

Time: ✅ 0.435µs (SLO: <10.000µs 📉 -95.7%)

Memory: ✅ 34.623MB (SLO: <35.000MB 🟡 -1.1%)


✅ casefold_aspect

Time: ✅ 0.742µs (SLO: <10.000µs 📉 -92.6%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ casefold_noaspect

Time: ✅ 0.369µs (SLO: <10.000µs 📉 -96.3%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ decode_aspect

Time: ✅ 0.724µs (SLO: <10.000µs 📉 -92.8%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ decode_noaspect

Time: ✅ 0.419µs (SLO: <10.000µs 📉 -95.8%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ encode_aspect

Time: ✅ 0.713µs (SLO: <10.000µs 📉 -92.9%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ encode_noaspect

Time: ✅ 0.400µs (SLO: <10.000µs 📉 -96.0%)

Memory: ✅ 34.623MB (SLO: <35.000MB 🟡 -1.1%)


✅ format_aspect

Time: ✅ 3.362µs (SLO: <10.000µs 📉 -66.4%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ format_map_aspect

Time: ✅ 3.256µs (SLO: <10.000µs 📉 -67.4%)

Memory: ✅ 34.642MB (SLO: <35.000MB 🟡 -1.0%)


✅ format_map_noaspect

Time: ✅ 0.772µs (SLO: <10.000µs 📉 -92.3%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ format_noaspect

Time: ✅ 0.597µs (SLO: <10.000µs 📉 -94.0%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ index_aspect

Time: ✅ 0.345µs (SLO: <10.000µs 📉 -96.5%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ index_noaspect

Time: ✅ 0.275µs (SLO: <10.000µs 📉 -97.2%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ join_aspect

Time: ✅ 1.223µs (SLO: <10.000µs 📉 -87.8%)

Memory: ✅ 34.662MB (SLO: <35.000MB 🟡 -1.0%)


✅ join_noaspect

Time: ✅ 0.494µs (SLO: <10.000µs 📉 -95.1%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ ljust_aspect

Time: ✅ 10.804µs (SLO: <20.000µs 📉 -46.0%)

Memory: ✅ 34.682MB (SLO: <35.500MB -2.3%)


✅ ljust_noaspect

Time: ✅ 0.402µs (SLO: <10.000µs 📉 -96.0%)

Memory: ✅ 34.603MB (SLO: <35.500MB -2.5%)


✅ lower_aspect

Time: ✅ 2.258µs (SLO: <10.000µs 📉 -77.4%)

Memory: ✅ 34.682MB (SLO: <35.500MB -2.3%)


✅ lower_noaspect

Time: ✅ 0.366µs (SLO: <10.000µs 📉 -96.3%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ lstrip_aspect

Time: ✅ 10.330µs (SLO: <20.000µs 📉 -48.4%)

Memory: ✅ 34.741MB (SLO: <35.500MB -2.1%)


✅ lstrip_noaspect

Time: ✅ 0.380µs (SLO: <10.000µs 📉 -96.2%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ modulo_aspect

Time: ✅ 0.598µs (SLO: <10.000µs 📉 -94.0%)

Memory: ✅ 34.642MB (SLO: <35.000MB 🟡 -1.0%)


✅ modulo_aspect_for_bytearray_bytearray

Time: ✅ 1.256µs (SLO: <10.000µs 📉 -87.4%)

Memory: ✅ 34.682MB (SLO: <35.000MB 🟡 -0.9%)


✅ modulo_aspect_for_bytes

Time: ✅ 0.742µs (SLO: <10.000µs 📉 -92.6%)

Memory: ✅ 34.623MB (SLO: <35.000MB 🟡 -1.1%)


✅ modulo_aspect_for_bytes_bytearray

Time: ✅ 0.974µs (SLO: <10.000µs 📉 -90.3%)

Memory: ✅ 34.642MB (SLO: <35.000MB 🟡 -1.0%)


✅ modulo_noaspect

Time: ✅ 0.622µs (SLO: <10.000µs 📉 -93.8%)

Memory: ✅ 34.623MB (SLO: <35.000MB 🟡 -1.1%)


✅ replace_aspect

Time: ✅ 4.655µs (SLO: <10.000µs 📉 -53.5%)

Memory: ✅ 34.662MB (SLO: <35.000MB 🟡 -1.0%)


✅ replace_noaspect

Time: ✅ 0.460µs (SLO: <10.000µs 📉 -95.4%)

Memory: ✅ 34.603MB (SLO: <35.500MB -2.5%)


✅ repr_aspect

Time: ✅ 0.910µs (SLO: <10.000µs 📉 -90.9%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ repr_noaspect

Time: ✅ 0.413µs (SLO: <10.000µs 📉 -95.9%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ rstrip_aspect

Time: ✅ 10.241µs (SLO: <20.000µs 📉 -48.8%)

Memory: ✅ 34.741MB (SLO: <35.500MB -2.1%)


✅ rstrip_noaspect

Time: ✅ 0.377µs (SLO: <10.000µs 📉 -96.2%)

Memory: ✅ 34.623MB (SLO: <35.000MB 🟡 -1.1%)


✅ slice_aspect

Time: ✅ 0.480µs (SLO: <10.000µs 📉 -95.2%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ slice_noaspect

Time: ✅ 0.449µs (SLO: <10.000µs 📉 -95.5%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ stringio_aspect

Time: ✅ 2.197µs (SLO: <10.000µs 📉 -78.0%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ stringio_noaspect

Time: ✅ 0.708µs (SLO: <10.000µs 📉 -92.9%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ strip_aspect

Time: ✅ 10.402µs (SLO: <20.000µs 📉 -48.0%)

Memory: ✅ 34.760MB (SLO: <35.500MB -2.1%)


✅ strip_noaspect

Time: ✅ 0.384µs (SLO: <10.000µs 📉 -96.2%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ swapcase_aspect

Time: ✅ 2.466µs (SLO: <10.000µs 📉 -75.3%)

Memory: ✅ 34.642MB (SLO: <35.000MB 🟡 -1.0%)


✅ swapcase_noaspect

Time: ✅ 0.530µs (SLO: <10.000µs 📉 -94.7%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ title_aspect

Time: ✅ 2.430µs (SLO: <10.000µs 📉 -75.7%)

Memory: ✅ 34.741MB (SLO: <35.000MB 🟡 -0.7%)


✅ title_noaspect

Time: ✅ 0.497µs (SLO: <10.000µs 📉 -95.0%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ translate_aspect

Time: ✅ 3.489µs (SLO: <10.000µs 📉 -65.1%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ translate_noaspect

Time: ✅ 1.041µs (SLO: <10.000µs 📉 -89.6%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ upper_aspect

Time: ✅ 2.293µs (SLO: <10.000µs 📉 -77.1%)

Memory: ✅ 34.662MB (SLO: <35.000MB 🟡 -1.0%)


✅ upper_noaspect

Time: ✅ 0.370µs (SLO: <10.000µs 📉 -96.3%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


🔵 iastaspectsospath - 24/24

🔵 No baseline data available for this suite

✅ ospathbasename_aspect

Time: ✅ 4.140µs (SLO: <10.000µs 📉 -58.6%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ ospathbasename_noaspect

Time: ✅ 1.080µs (SLO: <10.000µs 📉 -89.2%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ ospathjoin_aspect

Time: ✅ 6.027µs (SLO: <10.000µs 📉 -39.7%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ ospathjoin_noaspect

Time: ✅ 2.291µs (SLO: <10.000µs 📉 -77.1%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ ospathnormcase_aspect

Time: ✅ 4.017µs (SLO: <10.000µs 📉 -59.8%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ ospathnormcase_noaspect

Time: ✅ 0.572µs (SLO: <10.000µs 📉 -94.3%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ ospathsplit_aspect

Time: ✅ 5.841µs (SLO: <10.000µs 📉 -41.6%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ ospathsplit_noaspect

Time: ✅ 1.592µs (SLO: <10.000µs 📉 -84.1%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ ospathsplitdrive_aspect

Time: ✅ 3.668µs (SLO: <10.000µs 📉 -63.3%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ ospathsplitdrive_noaspect

Time: ✅ 0.692µs (SLO: <10.000µs 📉 -93.1%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ ospathsplitext_aspect

Time: ✅ 4.582µs (SLO: <10.000µs 📉 -54.2%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ ospathsplitext_noaspect

Time: ✅ 1.373µs (SLO: <10.000µs 📉 -86.3%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


🔵 iastaspectssplit - 12/12

🔵 No baseline data available for this suite

✅ rsplit_aspect

Time: ✅ 1.602µs (SLO: <10.000µs 📉 -84.0%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ rsplit_noaspect

Time: ✅ 0.578µs (SLO: <10.000µs 📉 -94.2%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ split_aspect

Time: ✅ 1.519µs (SLO: <10.000µs 📉 -84.8%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ split_noaspect

Time: ✅ 0.565µs (SLO: <10.000µs 📉 -94.4%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ splitlines_aspect

Time: ✅ 1.425µs (SLO: <10.000µs 📉 -85.8%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ splitlines_noaspect

Time: ✅ 0.584µs (SLO: <10.000µs 📉 -94.2%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


🔵 iastpropagation - 8/8

🔵 No baseline data available for this suite

✅ no-propagation

Time: ✅ 48.908µs (SLO: <60.000µs 📉 -18.5%)

Memory: ✅ 34.623MB (SLO: <35.500MB -2.5%)


✅ propagation_enabled

Time: ✅ 145.774µs (SLO: <160.000µs -8.9%)

Memory: ✅ 34.623MB (SLO: <35.500MB -2.5%)


✅ propagation_enabled_100

Time: ✅ 1.578ms (SLO: <1.800ms 📉 -12.3%)

Memory: ✅ 34.603MB (SLO: <35.000MB 🟡 -1.1%)


✅ propagation_enabled_1000

Time: ✅ 28.936ms (SLO: <30.550ms -5.3%)

Memory: ✅ 34.603MB (SLO: <35.500MB -2.5%)


🔵 otelsdkspan - 24/24

🔵 No baseline data available for this suite

✅ add-event

Time: ✅ 40.219ms (SLO: <42.000ms -4.2%)

Memory: ✅ 31.556MB (SLO: <35.000MB -9.8%)


✅ add-link

Time: ✅ 36.265ms (SLO: <38.550ms -5.9%)

Memory: ✅ 31.497MB (SLO: <35.000MB 📉 -10.0%)


✅ add-metrics

Time: ✅ 219.777ms (SLO: <232.000ms -5.3%)

Memory: ✅ 31.497MB (SLO: <35.000MB 📉 -10.0%)


✅ add-tags

Time: ✅ 211.341ms (SLO: <221.600ms -4.6%)

Memory: ✅ 31.477MB (SLO: <35.000MB 📉 -10.1%)


✅ get-context

Time: ✅ 29.216ms (SLO: <31.300ms -6.7%)

Memory: ✅ 31.477MB (SLO: <35.000MB 📉 -10.1%)


✅ is-recording

Time: ✅ 28.928ms (SLO: <31.000ms -6.7%)

Memory: ✅ 31.477MB (SLO: <35.000MB 📉 -10.1%)


✅ record-exception

Time: ✅ 62.947ms (SLO: <65.850ms -4.4%)

Memory: ✅ 31.536MB (SLO: <35.000MB -9.9%)


✅ set-status

Time: ✅ 31.584ms (SLO: <34.150ms -7.5%)

Memory: ✅ 31.477MB (SLO: <35.000MB 📉 -10.1%)


✅ start

Time: ✅ 28.594ms (SLO: <30.150ms -5.2%)

Memory: ✅ 31.516MB (SLO: <35.000MB -10.0%)


✅ start-finish

Time: ✅ 34.169ms (SLO: <35.350ms -3.3%)

Memory: ✅ 31.516MB (SLO: <35.000MB -10.0%)


✅ start-finish-telemetry

Time: ✅ 33.719ms (SLO: <35.450ms -4.9%)

Memory: ✅ 31.516MB (SLO: <35.000MB -10.0%)


✅ update-name

Time: ✅ 30.794ms (SLO: <33.400ms -7.8%)

Memory: ✅ 31.477MB (SLO: <35.000MB 📉 -10.1%)


🔵 otelspan - 22/22

🔵 No baseline data available for this suite

✅ add-event

Time: ✅ 43.745ms (SLO: <47.150ms -7.2%)

Memory: ✅ 41.983MB (SLO: <42.500MB 🟡 -1.2%)


✅ add-metrics

Time: ✅ 320.941ms (SLO: <344.800ms -6.9%)

Memory: ✅ 560.206MB (SLO: <562.000MB 🟡 -0.3%)


✅ add-tags

Time: ✅ 289.163ms (SLO: <314.000ms -7.9%)

Memory: ✅ 560.566MB (SLO: <563.500MB 🟡 -0.5%)


✅ get-context

Time: ✅ 85.149ms (SLO: <92.350ms -7.8%)

Memory: ✅ 37.243MB (SLO: <38.000MB 🟡 -2.0%)


✅ is-recording

Time: ✅ 41.475ms (SLO: <44.500ms -6.8%)

Memory: ✅ 41.514MB (SLO: <42.000MB 🟡 -1.2%)


✅ record-exception

Time: ✅ 60.378ms (SLO: <67.650ms 📉 -10.7%)

Memory: ✅ 37.477MB (SLO: <38.000MB 🟡 -1.4%)


✅ set-status

Time: ✅ 47.405ms (SLO: <50.400ms -5.9%)

Memory: ✅ 41.494MB (SLO: <42.000MB 🟡 -1.2%)


✅ start

Time: ✅ 40.693ms (SLO: <43.450ms -6.3%)

Memory: ✅ 41.473MB (SLO: <42.000MB 🟡 -1.3%)


✅ start-finish

Time: ✅ 80.811ms (SLO: <86.000ms -6.0%)

Memory: ✅ 31.575MB (SLO: <32.000MB 🟡 -1.3%)


✅ start-finish-telemetry

Time: ✅ 82.630ms (SLO: <86.000ms -3.9%)

Memory: ✅ 31.575MB (SLO: <32.000MB 🟡 -1.3%)


✅ update-name

Time: ✅ 42.837ms (SLO: <45.150ms -5.1%)

Memory: ✅ 41.660MB (SLO: <42.500MB 🟡 -2.0%)


🔵 packagespackageforrootmodulemapping - 4/4

🔵 No baseline data available for this suite

✅ cache_off

Time: ✅ 340.271ms (SLO: <354.300ms -4.0%)

Memory: ✅ 34.462MB (SLO: <38.000MB -9.3%)


✅ cache_on

Time: ✅ 0.385µs (SLO: <10.000µs 📉 -96.2%)

Memory: ✅ 33.321MB (SLO: <38.000MB 📉 -12.3%)


🔵 packagesupdateimporteddependencies - 24/24

🔵 No baseline data available for this suite

✅ import_many

Time: ✅ 156.822µs (SLO: <170.000µs -7.8%)

Memory: ✅ 34.098MB (SLO: <35.500MB -3.9%)


✅ import_many_cached

Time: ✅ 120.932µs (SLO: <130.000µs -7.0%)

Memory: ✅ 33.759MB (SLO: <35.500MB -4.9%)


✅ import_many_stdlib

Time: ✅ 1.596ms (SLO: <1.750ms -8.8%)

Memory: ✅ 33.627MB (SLO: <35.500MB -5.3%)


✅ import_many_stdlib_cached

Time: ✅ 0.962ms (SLO: <1.100ms 📉 -12.6%)

Memory: ✅ 33.622MB (SLO: <35.500MB -5.3%)


✅ import_many_unknown

Time: ✅ 838.058µs (SLO: <890.000µs -5.8%)

Memory: ✅ 33.888MB (SLO: <35.500MB -4.5%)


✅ import_many_unknown_cached

Time: ✅ 790.233µs (SLO: <870.000µs -9.2%)

Memory: ✅ 33.699MB (SLO: <35.500MB -5.1%)


✅ import_one

Time: ✅ 19.826µs (SLO: <30.000µs 📉 -33.9%)

Memory: ✅ 33.743MB (SLO: <35.500MB -5.0%)


✅ import_one_cache

Time: ✅ 6.220µs (SLO: <10.000µs 📉 -37.8%)

Memory: ✅ 33.656MB (SLO: <35.500MB -5.2%)


✅ import_one_stdlib

Time: ✅ 18.729µs (SLO: <20.000µs -6.4%)

Memory: ✅ 33.677MB (SLO: <35.500MB -5.1%)


✅ import_one_stdlib_cache

Time: ✅ 6.229µs (SLO: <10.000µs 📉 -37.7%)

Memory: ✅ 33.728MB (SLO: <35.500MB -5.0%)


✅ import_one_unknown

Time: ✅ 45.465µs (SLO: <50.000µs -9.1%)

Memory: ✅ 33.801MB (SLO: <35.500MB -4.8%)


✅ import_one_unknown_cache

Time: ✅ 6.278µs (SLO: <10.000µs 📉 -37.2%)

Memory: ✅ 33.712MB (SLO: <35.500MB -5.0%)


🔵 ratelimiter - 12/12

🔵 No baseline data available for this suite

✅ defaults

Time: ✅ 2.339µs (SLO: <10.000µs 📉 -76.6%)

Memory: ✅ 28.665MB (SLO: <31.000MB -7.5%)


✅ high_rate_limit

Time: ✅ 2.427µs (SLO: <10.000µs 📉 -75.7%)

Memory: ✅ 28.665MB (SLO: <31.000MB -7.5%)


✅ long_window

Time: ✅ 2.359µs (SLO: <10.000µs 📉 -76.4%)

Memory: ✅ 28.685MB (SLO: <31.000MB -7.5%)


✅ low_rate_limit

Time: ✅ 2.370µs (SLO: <10.000µs 📉 -76.3%)

Memory: ✅ 28.744MB (SLO: <31.000MB -7.3%)


✅ no_rate_limit

Time: ✅ 0.828µs (SLO: <10.000µs 📉 -91.7%)

Memory: ✅ 28.705MB (SLO: <31.000MB -7.4%)


✅ short_window

Time: ✅ 2.508µs (SLO: <10.000µs 📉 -74.9%)

Memory: ✅ 28.685MB (SLO: <31.000MB -7.5%)


🔵 recursivecomputation - 8/8

🔵 No baseline data available for this suite

✅ deep

Time: ✅ 308.881ms (SLO: <320.950ms -3.8%)

Memory: ✅ 29.924MB (SLO: <31.000MB -3.5%)


✅ deep-profiled

Time: ✅ 328.107ms (SLO: <359.150ms -8.6%)

Memory: ✅ 34.151MB (SLO: <35.500MB -3.8%)


✅ medium

Time: ✅ 7.041ms (SLO: <7.400ms -4.9%)

Memory: ✅ 29.137MB (SLO: <31.000MB -6.0%)


✅ shallow

Time: ✅ 0.951ms (SLO: <1.050ms -9.4%)

Memory: ✅ 29.137MB (SLO: <31.000MB -6.0%)


🔵 samplingrules - 8/8

🔵 No baseline data available for this suite

✅ average_match

Time: ✅ 278.003µs (SLO: <350.000µs 📉 -20.6%)

Memory: ✅ 28.724MB (SLO: <31.000MB -7.3%)


✅ high_match

Time: ✅ 448.299µs (SLO: <550.000µs 📉 -18.5%)

Memory: ✅ 28.705MB (SLO: <31.000MB -7.4%)


✅ low_match

Time: ✅ 110.763µs (SLO: <190.000µs 📉 -41.7%)

Memory: ✅ 431.790MB (SLO: <432.500MB 🟡 -0.2%)


✅ very_low_match

Time: ✅ 7.717ms (SLO: <9.150ms 📉 -15.7%)

Memory: ✅ 54.729MB (SLO: <55.000MB 🟡 -0.5%)


🔵 sethttpmeta - 32/32

🔵 No baseline data available for this suite

✅ all-disabled

Time: ✅ 12.083µs (SLO: <20.000µs 📉 -39.6%)

Memory: ✅ 29.550MB (SLO: <31.000MB -4.7%)


✅ all-enabled

Time: ✅ 42.755µs (SLO: <50.000µs 📉 -14.5%)

Memory: ✅ 29.531MB (SLO: <31.000MB -4.7%)


✅ collectipvariant_exists

Time: ✅ 42.765µs (SLO: <50.000µs 📉 -14.5%)

Memory: ✅ 29.590MB (SLO: <31.000MB -4.5%)


✅ no-collectipvariant

Time: ✅ 42.171µs (SLO: <50.000µs 📉 -15.7%)

Memory: ✅ 29.570MB (SLO: <31.000MB -4.6%)


✅ no-useragentvariant

Time: ✅ 40.694µs (SLO: <50.000µs 📉 -18.6%)

Memory: ✅ 29.531MB (SLO: <31.000MB -4.7%)


✅ obfuscation-no-query

Time: ✅ 42.477µs (SLO: <50.000µs 📉 -15.0%)

Memory: ✅ 29.491MB (SLO: <31.000MB -4.9%)


✅ obfuscation-regular-case-explicit-query

Time: ✅ 79.022µs (SLO: <90.000µs 📉 -12.2%)

Memory: ✅ 29.570MB (SLO: <31.000MB -4.6%)


✅ obfuscation-regular-case-implicit-query

Time: ✅ 80.479µs (SLO: <90.000µs 📉 -10.6%)

Memory: ✅ 29.570MB (SLO: <31.000MB -4.6%)


✅ obfuscation-send-querystring-disabled

Time: ✅ 157.143µs (SLO: <170.000µs -7.6%)

Memory: ✅ 29.511MB (SLO: <31.000MB -4.8%)


✅ obfuscation-worst-case-explicit-query

Time: ✅ 151.495µs (SLO: <160.000µs -5.3%)

Memory: ✅ 29.491MB (SLO: <31.000MB -4.9%)


✅ obfuscation-worst-case-implicit-query

Time: ✅ 157.556µs (SLO: <170.000µs -7.3%)

Memory: ✅ 29.570MB (SLO: <31.000MB -4.6%)


✅ useragentvariant_exists_1

Time: ✅ 41.502µs (SLO: <50.000µs 📉 -17.0%)

Memory: ✅ 29.570MB (SLO: <31.000MB -4.6%)


✅ useragentvariant_exists_2

Time: ✅ 42.697µs (SLO: <50.000µs 📉 -14.6%)

Memory: ✅ 29.531MB (SLO: <31.000MB -4.7%)


✅ useragentvariant_exists_3

Time: ✅ 42.191µs (SLO: <50.000µs 📉 -15.6%)

Memory: ✅ 29.511MB (SLO: <31.000MB -4.8%)


✅ useragentvariant_not_exists_1

Time: ✅ 41.580µs (SLO: <50.000µs 📉 -16.8%)

Memory: ✅ 29.531MB (SLO: <31.000MB -4.7%)


✅ useragentvariant_not_exists_2

Time: ✅ 41.570µs (SLO: <50.000µs 📉 -16.9%)

Memory: ✅ 29.531MB (SLO: <31.000MB -4.7%)


🔵 span - 26/26

🔵 No baseline data available for this suite

✅ add-event

Time: ✅ 23.063ms (SLO: <26.200ms 📉 -12.0%)

Memory: ✅ 48.459MB (SLO: <49.000MB 🟡 -1.1%)


✅ add-metrics

Time: ✅ 91.508ms (SLO: <98.350ms -7.0%)

Memory: ✅ 614.187MB (SLO: <961.000MB 📉 -36.1%)


✅ add-tags

Time: ✅ 148.925ms (SLO: <168.550ms 📉 -11.6%)

Memory: ✅ 614.537MB (SLO: <962.500MB 📉 -36.2%)


✅ get-context

Time: ✅ 21.672ms (SLO: <23.700ms -8.6%)

Memory: ✅ 47.238MB (SLO: <47.500MB 🟡 -0.6%)


✅ is-recording

Time: ✅ 21.582ms (SLO: <23.900ms -9.7%)

Memory: ✅ 47.244MB (SLO: <47.500MB 🟡 -0.5%)


✅ record-exception

Time: ✅ 41.034ms (SLO: <44.500ms -7.8%)

Memory: ✅ 40.230MB (SLO: <40.500MB 🟡 -0.7%)


✅ set-status

Time: ✅ 23.067ms (SLO: <26.000ms 📉 -11.3%)

Memory: ✅ 47.285MB (SLO: <47.500MB 🟡 -0.5%)


✅ start

Time: ✅ 21.217ms (SLO: <23.500ms -9.7%)

Memory: ✅ 47.244MB (SLO: <47.500MB 🟡 -0.5%)


✅ start-finish

Time: ✅ 50.948ms (SLO: <52.500ms -3.0%)

Memory: ✅ 29.098MB (SLO: <31.000MB -6.1%)


✅ start-finish-telemetry

Time: ✅ 51.827ms (SLO: <55.300ms -6.3%)

Memory: ✅ 29.118MB (SLO: <31.000MB -6.1%)


✅ start-finish-traceid128

Time: ✅ 53.753ms (SLO: <56.050ms -4.1%)

Memory: ✅ 29.157MB (SLO: <31.000MB -5.9%)


✅ start-traceid128

Time: ✅ 21.881ms (SLO: <24.600ms 📉 -11.1%)

Memory: ✅ 47.265MB (SLO: <47.500MB 🟡 -0.5%)


✅ update-name

Time: ✅ 21.882ms (SLO: <24.100ms -9.2%)

Memory: ✅ 47.866MB (SLO: <48.000MB 🟡 -0.3%)


🔵 telemetryaddmetric - 30/30

🔵 No baseline data available for this suite

✅ 1-count-metric-1-times

Time: ✅ 3.252µs (SLO: <10.000µs 📉 -67.5%)

Memory: ✅ 29.098MB (SLO: <31.000MB -6.1%)


✅ 1-count-metrics-100-times

Time: ✅ 214.200µs (SLO: <240.000µs 📉 -10.8%)

Memory: ✅ 29.098MB (SLO: <31.000MB -6.1%)


✅ 1-distribution-metric-1-times

Time: ✅ 2.961µs (SLO: <10.000µs 📉 -70.4%)

Memory: ✅ 29.098MB (SLO: <31.000MB -6.1%)


✅ 1-distribution-metrics-100-times

Time: ✅ 192.000µs (SLO: <210.000µs -8.6%)

Memory: ✅ 29.078MB (SLO: <31.000MB -6.2%)


✅ 1-gauge-metric-1-times

Time: ✅ 2.335µs (SLO: <10.000µs 📉 -76.7%)

Memory: ✅ 29.098MB (SLO: <31.000MB -6.1%)


✅ 1-gauge-metrics-100-times

Time: ✅ 123.397µs (SLO: <140.000µs 📉 -11.9%)

Memory: ✅ 29.078MB (SLO: <31.000MB -6.2%)


✅ 1-rate-metric-1-times

Time: ✅ 3.332µs (SLO: <10.000µs 📉 -66.7%)

Memory: ✅ 29.098MB (SLO: <31.000MB -6.1%)


✅ 1-rate-metrics-100-times

Time: ✅ 213.192µs (SLO: <230.000µs -7.3%)

Memory: ✅ 29.078MB (SLO: <31.000MB -6.2%)


✅ 100-count-metrics-100-times

Time: ✅ 21.122ms (SLO: <22.500ms -6.1%)

Memory: ✅ 29.098MB (SLO: <31.000MB -6.1%)


✅ 100-distribution-metrics-100-times

Time: ✅ 1.991ms (SLO: <2.100ms -5.2%)

Memory: ✅ 29.098MB (SLO: <31.000MB -6.1%)


✅ 100-gauge-metrics-100-times

Time: ✅ 1.272ms (SLO: <1.400ms -9.1%)

Memory: ✅ 29.098MB (SLO: <31.000MB -6.1%)


✅ 100-rate-metrics-100-times

Time: ✅ 2.176ms (SLO: <2.400ms -9.3%)

Memory: ✅ 29.078MB (SLO: <31.000MB -6.2%)


✅ flush-1-metric

Time: ✅ 4.251µs (SLO: <10.000µs 📉 -57.5%)

Memory: ✅ 29.098MB (SLO: <31.000MB -6.1%)


✅ flush-100-metrics

Time: ✅ 181.808µs (SLO: <200.000µs -9.1%)

Memory: ✅ 29.098MB (SLO: <31.000MB -6.1%)


✅ flush-1000-metrics

Time: ✅ 2.198ms (SLO: <2.350ms -6.5%)

Memory: ✅ 29.884MB (SLO: <31.000MB -3.6%)


🔵 tracer - 6/6

🔵 No baseline data available for this suite

✅ large

Time: ✅ 29.832ms (SLO: <32.950ms -9.5%)

Memory: ✅ 30.278MB (SLO: <31.000MB -2.3%)


✅ medium

Time: ✅ 2.940ms (SLO: <3.200ms -8.1%)

Memory: ✅ 28.705MB (SLO: <31.000MB -7.4%)


✅ small

Time: ✅ 330.520µs (SLO: <370.000µs 📉 -10.7%)

Memory: ✅ 28.724MB (SLO: <31.000MB -7.3%)

@alyshawang alyshawang changed the title profiling: memory profiler unification draft refactor(profiling): unifying the allocation and live memory profilers Jul 25, 2025
@alyshawang alyshawang force-pushed the alysha.wang/memory_profiler_unification branch from 1d5bc4e to 30a71be Compare July 25, 2025 19:33
This PR unifies the Python memory profiler's allocation and live heap
profilers into a single, consistent, sampling-based system. Previously,
both profilers operated independently with separate implementations,
overlapping functionality, and distinct data paths. This change replaces
the older allocation profiler logic with an enhanced version of the heap
profiler that:

- Tracks both live allocations and freed-but-unreported allocations in one place.
- Produces enriched samples that include: in_use flag (is this
  allocation still alive?), reported flag (has this sample been reported
  before?), count (scaling factor for probabilistic allocation count)
- Fully removes the legacy iter_events() and its global_alloc_tracker-based sampling.
@avidal avidal force-pushed the alysha.wang/memory_profiler_unification branch from 30a71be to 7aa77ea Compare July 25, 2025 20:24
@alyshawang alyshawang force-pushed the alysha.wang/memory_profiler_unification branch from 479b029 to 7aa77ea Compare July 28, 2025 18:47
@nsrip-dd nsrip-dd marked this pull request as ready for review July 30, 2025 12:38
@nsrip-dd nsrip-dd requested a review from a team as a code owner July 30, 2025 12:38
@nsrip-dd nsrip-dd requested review from lievan and tabgok July 30, 2025 12:38
Copy link
Contributor

@nsrip-dd nsrip-dd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@nsrip-dd nsrip-dd merged commit 27ce743 into main Jul 31, 2025
475 of 480 checks passed
@nsrip-dd nsrip-dd deleted the alysha.wang/memory_profiler_unification branch July 31, 2025 17:21
nsrip-dd added a commit that referenced this pull request Jul 31, 2025
DD_PROFILING_MAX_EVENTS doesn't do anything since #13988. This commit just
cleans up some remaining references we missed.
nsrip-dd added a commit that referenced this pull request Aug 1, 2025
DD_PROFILING_MAX_EVENTS doesn't do anything since #13988. This commit
just cleans up some remaining references we missed.
gnufede pushed a commit that referenced this pull request Aug 4, 2025
DD_PROFILING_MAX_EVENTS doesn't do anything since #13988. This commit
just cleans up some remaining references we missed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants