Skip to content

Commit 4ea372c

Browse files
committed
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.
1 parent b7f0871 commit 4ea372c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

collector/src/utils/cachegrind.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ pub fn cachegrind_annotate(
3838
let line = line?;
3939
if line.starts_with("fl=") {
4040
// All jemalloc filenames have `/jemalloc/` or
41-
// something like `/jemalloc-sys-1e20251078fe5355/` in
41+
// something like `/jemalloc-sys-1e20251078fe5355/` or
42+
// `/tikv-jemalloc-sys-ce50ae873ce2796b` in
4243
// them.
43-
in_jemalloc_file = line.contains("/jemalloc");
44+
in_jemalloc_file = line.contains("jemalloc");
4445
if in_jemalloc_file {
4546
writeln!(writer, "fl=<all-jemalloc-files>")?;
4647
continue;

0 commit comments

Comments
 (0)