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

Method resolve_enable_profiler

src/cli/shared.rs:266–274  ·  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

264 /// Resolves the effective `enable_profiler` value, honoring the deprecated
265 /// `--enable-perf` / `CODSPEED_PERF_ENABLED` flag with a warning.
266 pub fn resolve_enable_profiler(&self) -> bool {
267 let Some(legacy) = self.enable_perf else {
268 return self.enable_profiler;
269 };
270 log::warn!(
271 "CODSPEED_PERF_ENABLED / --enable-perf is deprecated; use CODSPEED_PROFILER_ENABLED / --enable-profiler instead."
272 );
273 legacy
274 }
275}
276
277/// Parser for go-runner version that validates semver format

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected