Skip to content

Commit 40a4ba9

Browse files
authored
Update src/flamegraph/mod.rs
1 parent 63eed27 commit 40a4ba9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flamegraph/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,9 @@ where
429429
}
430430
stack.push(' ');
431431
stack.push_str(&line[samples_idx..]);
432+
// Trim to handle the case where functions names internally contain `;`.
433+
// This can happen, for example, with types like `[u8; 8]` in Rust.
434+
// See https://github.com/jonhoo/inferno/pull/338.
432435
let stack = stack.trim();
433436
reversed.push(&stack);
434437
}

0 commit comments

Comments
 (0)