Skip to content

Commit f46c4e8

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 3cf4d61 commit f46c4e8

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
@@ -392,7 +392,7 @@ def _start_service(self) -> None:
392392
# live-heap (ddheap:free + retain flagging) is a build-time
393393
# property of the cdylib, not a runtime toggle; report which
394394
# mode was actually armed for observability.
395-
mode = "live-heap" if heap_gotter.live_heap_enabled() else "allocation-only"
395+
mode: str = "live-heap" if heap_gotter.live_heap_enabled() else "allocation-only"
396396
LOG.debug("Native heap profiling armed (GOT overrides installed, %s)", mode)
397397
else:
398398
LOG.debug("Native heap profiling requested but GOT overrides were not installed")

0 commit comments

Comments
 (0)