File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,19 @@ pub fn get_base_injected_env(
2929 "0" . into ( )
3030 } ,
3131 ) ,
32+ // Java: Enable frame pointers and perf map generation for flamegraph profiling.
33+ // - UnlockDiagnosticVMOptions must come before DumpPerfMapAtExit (diagnostic option).
34+ // - PreserveFramePointer: Preserves frame pointers for profiling.
35+ // - DumpPerfMapAtExit: Writes /tmp/perf-<pid>.map on JVM exit for symbol resolution.
36+ // - DebugNonSafepoints: Enables debug info for JIT-compiled non-safepoint code.
37+ (
38+ "JAVA_TOOL_OPTIONS" ,
39+ if mode == RunnerMode :: Walltime {
40+ "-XX:+PreserveFramePointer -XX:+UnlockDiagnosticVMOptions -XX:+DumpPerfMapAtExit -XX:+DebugNonSafepoints" . into ( )
41+ } else {
42+ "" . into ( )
43+ } ,
44+ ) ,
3245 ( "ARCH" , ARCH . into ( ) ) ,
3346 ( "CODSPEED_ENV" , "runner" . into ( ) ) ,
3447 (
You can’t perform that action at this time.
0 commit comments