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

Method from

src/runner_mode.rs:21–30  ·  view source on GitHub ↗
(mode: &RunnerMode)

Source from the content-addressed store, hash-verified

19
20impl From<&RunnerMode> for runner_shared::measurement_mode::MeasurementMode {
21 fn from(mode: &RunnerMode) -> Self {
22 match mode {
23 #[allow(deprecated)]
24 RunnerMode::Instrumentation | RunnerMode::Simulation => Self::Simulation,
25 RunnerMode::Walltime => Self::Walltime,
26 #[cfg(target_os = "linux")]
27 RunnerMode::Memory => Self::Memory,
28 RunnerMode::Telemetry => Self::Telemetry,
29 }
30 }
31}
32
33/// Register the active runner mode(s) for the current shell session.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected