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

Method executor_config_for_command

src/executor/config.rs:181–202  ·  view source on GitHub ↗

Produce a per-execution [`ExecutorConfig`] for the given command and mode. `enable_introspection` controls whether language-level wrappers (Node.js, Go) are injected into `PATH`. This should be `false` for exec-harness targets.

(
        &self,
        command: String,
        enable_introspection: bool,
    )

Source from the content-addressed store, hash-verified

179 /// `enable_introspection` controls whether language-level wrappers (Node.js, Go)
180 /// are injected into `PATH`. This should be `false` for exec-harness targets.
181 pub fn executor_config_for_command(
182 &self,
183 command: String,
184 enable_introspection: bool,
185 ) -> ExecutorConfig {
186 ExecutorConfig {
187 working_directory: self.working_directory.clone(),
188 command,
189 instruments: self.instruments.clone(),
190 enable_profiler: self.enable_profiler,
191 perf_unwinding_mode: self.perf_unwinding_mode,
192 simulation_tool: self.simulation_tool,
193 skip_run: self.skip_run,
194 skip_setup: self.skip_setup,
195 allow_empty: self.allow_empty,
196 go_runner_version: self.go_runner_version.clone(),
197 extra_env: self.extra_env.clone(),
198 enable_introspection,
199 fair_sched: self.fair_sched,
200 cycle_estimation: self.cycle_estimation,
201 }
202 }
203}
204
205#[cfg(test)]

Callers 2

testMethod · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected