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

Method executor_config_for_command

src/executor/config.rs:234–261  ·  view source on GitHub ↗

Produce a per-execution [`ExecutorConfig`] for the given command and mode.

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

Source from the content-addressed store, hash-verified

232
233 /// Produce a per-execution [`ExecutorConfig`] for the given command and mode.
234 pub fn executor_config_for_command(
235 &self,
236 command: String,
237 uses_exec_harness: bool,
238 ) -> ExecutorConfig {
239 ExecutorConfig {
240 working_directory: self.working_directory.clone(),
241 command,
242 instruments: self.instruments.clone(),
243 enable_profiler: self.enable_profiler,
244 walltime_unwinding: self.walltime_unwinding,
245 simulation_tool: self.simulation_tool,
246 skip_run: self.skip_run,
247 skip_setup: self.skip_setup,
248 allow_empty: self.allow_empty,
249 go_runner_version: self.go_runner_version.clone(),
250 extra_env: self.extra_env.clone(),
251 enable_introspection: !uses_exec_harness,
252 fair_sched: self.fair_sched,
253 rep_bulk_cost: self.rep_bulk_cost,
254 cycle_estimation: self.cycle_estimation,
255 exclude_allocations: self.exclude_allocations,
256 simulation_track_subprocess: self.simulation_track_subprocess || uses_exec_harness,
257 memory_track_physical: self.memory_track_physical,
258 disable_pythonmalloc_override: self.disable_pythonmalloc_override,
259 memory_capture_stack: self.memory_capture_stack,
260 }
261 }
262}
263
264#[cfg(test)]

Callers 2

testMethod · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected