Skip to content

Commit 4ffb053

Browse files
refactor(profiling): annotate native-heap live-heap arming local
Annotate the `mode` local introduced in _ProfilerInstance._start_service when reporting which native-heap mode (live-heap vs allocation-only) was armed. The live_heap_enabled activator additions and smoke-test assertions in this PR were already fully annotated.
1 parent fb5e08a commit 4ffb053

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ddtrace/profiling/profiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def _start_service(self) -> None:
396396
# live-heap (ddheap:free + retain flagging) is a build-time
397397
# property of the cdylib, not a runtime toggle; report which
398398
# mode was actually armed for observability.
399-
mode = "live-heap" if heap_gotter.live_heap_enabled() else "allocation-only"
399+
mode: str = "live-heap" if heap_gotter.live_heap_enabled() else "allocation-only"
400400
LOG.debug("Native heap profiling armed (GOT overrides installed, %s)", mode)
401401
else:
402402
LOG.debug("Native heap profiling requested but GOT overrides were not installed")

0 commit comments

Comments
 (0)