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

Method active_flags

src/cli/experimental.rs:32–41  ·  view source on GitHub ↗

Returns the names of all experimental flags that were explicitly set by the user.

(&self)

Source from the content-addressed store, hash-verified

30impl ExperimentalArgs {
31 /// Returns the names of all experimental flags that were explicitly set by the user.
32 pub fn active_flags(&self) -> Vec<&'static str> {
33 let mut flags = Vec::new();
34 if self.experimental_fair_sched {
35 flags.push("--experimental-fair-sched");
36 }
37 if self.cycle_estimation {
38 flags.push("--cycle-estimation");
39 }
40 flags
41 }
42
43 /// If any experimental flags are active, prints a warning to stderr.
44 pub fn warn_if_active(&self) {

Callers 1

warn_if_activeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected