MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / env

Function env

crates/runner-shared/src/runtime_env/java.rs:15–20  ·  view source on GitHub ↗
(mode: MeasurementMode)

Source from the content-addressed store, hash-verified

13const WALLTIME_JAVA_TOOL_OPTIONS: &str = "-XX:+PreserveFramePointer -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints -XX:+EnableDynamicAgentLoading -Djdk.attach.allowAttachSelf=true";
14
15pub(super) fn env(mode: MeasurementMode) -> Vec<(&'static str, String)> {
16 if mode != MeasurementMode::Walltime {
17 return Vec::new();
18 }
19 vec![(JAVA_TOOL_OPTIONS, WALLTIME_JAVA_TOOL_OPTIONS.to_owned())]
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected