Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/executor/helpers/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,19 @@ pub fn get_base_injected_env(
"0".into()
},
),
// Java: Enable frame pointers and perf map generation for flamegraph profiling.
// - UnlockDiagnosticVMOptions must come before DumpPerfMapAtExit (diagnostic option).
// - PreserveFramePointer: Preserves frame pointers for profiling.
// - DumpPerfMapAtExit: Writes /tmp/perf-<pid>.map on JVM exit for symbol resolution.
// - DebugNonSafepoints: Enables debug info for JIT-compiled non-safepoint code.
(
"JAVA_TOOL_OPTIONS",
if mode == RunnerMode::Walltime {
"-XX:+PreserveFramePointer -XX:+UnlockDiagnosticVMOptions -XX:+DumpPerfMapAtExit -XX:+DebugNonSafepoints".into()
} else {
"".into()
},
),
("ARCH", ARCH.into()),
("CODSPEED_ENV", "runner".into()),
(
Expand Down
Loading