Skip to content

Commit 69b9642

Browse files
ci(profiling): compile native heap gotter into Linux wheels
Set DD_PROFILING_NATIVE_HEAP_ENABLED on the Linux wheel job so libdd_heap_gotter.so is packaged. Runtime arming stays off by default.
1 parent 0dd603e commit 69b9642

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.gitlab/package.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ variables:
9696
SCCACHE_BUCKET: "dd-trace-py-builds"
9797
SCCACHE_S3_KEY_PREFIX: "sccache"
9898
SCCACHE_REGION: "us-east-1"
99+
# Packages the cdylib into Linux wheels only; does NOT arm the feature at customer runtime.
100+
DD_PROFILING_NATIVE_HEAP_ENABLED: "1"
99101
parallel:
100102
matrix:
101103
- ARCH_TAG: "amd64"

ddtrace/internal/settings/profiling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ class ProfilingConfigNativeHeap(DDConfig):
560560
help=(
561561
"Whether to enable experimental native (C/C++) heap profiling. "
562562
"Requires DD_PROFILING_ENABLED=true, Linux, and a wheel built with "
563-
"DD_PROFILING_NATIVE_HEAP_BUILD=1. Disabled by default."
563+
"DD_PROFILING_NATIVE_HEAP_ENABLED=1. Disabled by default."
564564
),
565565
)
566566

0 commit comments

Comments
 (0)