Skip to content

Commit c46109f

Browse files
committed
chore: use frame-pointer unwinding with Java
1 parent 2a4a08e commit c46109f

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
@@ -96,6 +96,12 @@ impl PerfRunner {
9696
// Infer the unwinding mode from the benchmark cmd
9797
let (cg_mode, stack_size) = if let Some(mode) = config.perf_unwinding_mode {
9898
(mode, None)
99+
} else if config.command.contains("gradle")
100+
|| config.command.contains("java")
101+
|| config.command.contains("maven")
102+
{
103+
// In Java, we must use FP unwinding otherwise we'll have broken call stacks.
104+
(UnwindingMode::FramePointer, None)
99105
} else if config.command.contains("cargo") {
100106
(UnwindingMode::Dwarf, None)
101107
} else if config.command.contains("pytest")

0 commit comments

Comments
 (0)