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

Method new

src/executor/orchestrator.rs:38–57  ·  view source on GitHub ↗
(config: OrchestratorConfig, api_client: &CodSpeedAPIClient)

Source from the content-addressed store, hash-verified

36 }
37
38 pub async fn new(config: OrchestratorConfig, api_client: &CodSpeedAPIClient) -> Result<Self> {
39 let provider = run_environment::get_provider(&config, api_client).await?;
40 let system_info = SystemInfo::new()?;
41 let logger = Logger::new(provider.as_ref())?;
42
43 #[allow(deprecated)]
44 if config.modes.contains(&RunnerMode::Instrumentation) {
45 warn!(
46 "The 'instrumentation' runner mode is deprecated and will be removed in a future version. \
47 Please use 'simulation' instead."
48 );
49 }
50
51 Ok(Orchestrator {
52 config,
53 system_info,
54 provider,
55 logger,
56 })
57 }
58
59 /// Execute all benchmark targets for all configured modes, then upload results.
60 ///

Callers

nothing calls this directly

Calls 1

get_providerFunction · 0.85

Tested by

no test coverage detected