Skip to content

Commit 1bc1ab2

Browse files
committed
chore: use frame-pointer unwinding with Java
1 parent 07e4faf commit 1bc1ab2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • src/executor/wall_time/perf

src/executor/wall_time/perf/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ impl PerfRunner {
9797
// Infer the unwinding mode from the benchmark cmd
9898
let (cg_mode, stack_size) = if let Some(mode) = config.perf_unwinding_mode {
9999
(mode, None)
100+
} else if config.command.contains("gradle")
101+
|| config.command.contains("java")
102+
|| config.command.contains("maven")
103+
{
104+
// In Java, we must use FP unwinding otherwise we'll have broken call stacks.
105+
(UnwindingMode::FramePointer, None)
100106
} else if config.command.contains("cargo") {
101107
(UnwindingMode::Dwarf, None)
102108
} else if config.command.contains("go test") {

0 commit comments

Comments
 (0)