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

Function enabled_instruments

src/executor/analysis/instruments/mod.rs:36–42  ·  view source on GitHub ↗
(instruments: &Instruments)

Source from the content-addressed store, hash-verified

34}
35
36pub fn enabled_instruments(instruments: &Instruments) -> Vec<Box<dyn AnalysisInstrument>> {
37 let mut enabled: Vec<Box<dyn AnalysisInstrument>> = Vec::new();
38 if instruments.telemetry {
39 enabled.push(Box::new(telemetry::TelemetryInstrument::default()));
40 }
41 enabled
42}

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected