summaryrefslogtreecommitdiffstats
path: root/src/daemon/daemon.c
diff options
context:
space:
mode:
authorvkalintiris <vasilis@netdata.cloud>2024-03-04 12:22:01 +0200
committervkalintiris <vasilis@netdata.cloud>2024-03-19 12:13:16 +0200
commit39568ed90ffce40ef669a0f0d5ad1f9bdc7cff06 (patch)
treeeb2fbbbb908efb5a43ad2fbd7dedcaab8e8987c4 /src/daemon/daemon.c
parenta890cfaa51854ed0c92cb169f0d2cd1652f6970d (diff)
Backtrace info when modifying refcount of metrics.bt
Keep the last X backtraces when a metric's reference count is increased/decreased. To keep CPU and memory consumption low we enable this only for UUIDs starting with 0x0A.
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r--src/daemon/daemon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index d9a4b81de5..ed8d677d94 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -26,6 +26,9 @@ void get_netdata_execution_path(void) {
}
netdata_exe_file[exepath_size] = '\0';
+#ifdef ENABLE_LIBBACKTRACE
+ bt_init(netdata_exe_file, netdata_configured_cache_dir);
+#endif
// macOS's dirname(3) does not modify passed string
char *tmpdir = strdupz(netdata_exe_file);