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

Method active_flags

src/cli/experimental.rs:74–86  ·  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

72impl ExperimentalArgs {
73 /// Returns the names of all experimental flags that were explicitly set by the user.
74 pub fn active_flags(&self) -> Vec<&'static str> {
75 let mut flags = Vec::new();
76 if self.experimental_fair_sched {
77 flags.push("--experimental-fair-sched");
78 }
79 if self.experimental_rep_bulk_cost {
80 flags.push("--experimental-rep-bulk-cost");
81 }
82 if self.experimental_disable_pythonmalloc_override {
83 flags.push("--experimental-disable-pythonmalloc-override");
84 }
85 flags
86 }
87
88 /// If any experimental flags are active, prints a warning to stderr.
89 pub fn warn_if_active(&self) {

Callers 1

warn_if_activeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected