Skip to content

Commit 99e42ad

Browse files
author
Julien Danjou
authored
feat(profiling): enable heap profiler by default (#2992)
1 parent c6f1fe3 commit 99e42ad

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

ddtrace/profiling/collector/memalloc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def _get_default_heap_sample_size(
5656
if heap_sample_size is not None:
5757
return int(heap_sample_size)
5858

59-
if not formats.asbool(os.environ.get("DD_PROFILING_HEAP_ENABLED", "0")):
59+
if not formats.asbool(os.environ.get("DD_PROFILING_HEAP_ENABLED", "1")):
6060
return 0
6161

6262
try:

docs/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ below:
206206
.. _dd-profiling-heap-enabled:
207207
* - ``DD_PROFILING_HEAP_ENABLED``
208208
- Boolean
209-
- False
209+
- True
210210
- Whether to enable the heap memory profiler.
211211

212212
.. _dd-profiling-capture-pct:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
features:
3+
- |
4+
The heap profiler is now enabled by default.

0 commit comments

Comments
 (0)