From 4ea372caff76684fa4962339fad5ccbfb28cd132 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 22 May 2025 16:27:16 +1000 Subject: [PATCH] Capture more jemalloc calls in Cachegrind. They are aggregated into a single entry, but there are some `tikv-jemalloc-sys` entries that are currently missed. --- collector/src/utils/cachegrind.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/collector/src/utils/cachegrind.rs b/collector/src/utils/cachegrind.rs index 682740af8..f47d40aad 100644 --- a/collector/src/utils/cachegrind.rs +++ b/collector/src/utils/cachegrind.rs @@ -38,9 +38,10 @@ pub fn cachegrind_annotate( let line = line?; if line.starts_with("fl=") { // All jemalloc filenames have `/jemalloc/` or - // something like `/jemalloc-sys-1e20251078fe5355/` in + // something like `/jemalloc-sys-1e20251078fe5355/` or + // `/tikv-jemalloc-sys-ce50ae873ce2796b` in // them. - in_jemalloc_file = line.contains("/jemalloc"); + in_jemalloc_file = line.contains("jemalloc"); if in_jemalloc_file { writeln!(writer, "fl=")?; continue;