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

Method resolve_enable_profiler

src/cli/shared.rs:183–191  ·  view source on GitHub ↗

Resolves the effective `enable_profiler` value, honoring the deprecated `--enable-perf` / `CODSPEED_PERF_ENABLED` flag with a warning.

(&self)

Source from the content-addressed store, hash-verified

181 /// Resolves the effective `enable_profiler` value, honoring the deprecated
182 /// `--enable-perf` / `CODSPEED_PERF_ENABLED` flag with a warning.
183 pub fn resolve_enable_profiler(&self) -> bool {
184 let Some(legacy) = self.enable_perf else {
185 return self.enable_profiler;
186 };
187 log::warn!(
188 "CODSPEED_PERF_ENABLED / --enable-perf is deprecated; use CODSPEED_PROFILER_ENABLED / --enable-profiler instead."
189 );
190 legacy
191 }
192}
193
194/// Parser for go-runner version that validates semver format

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected