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

Function get_valgrind_executor

src/executor/tests.rs:153–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 use crate::executor::valgrind::executor::ValgrindExecutor;
152
153 async fn get_valgrind_executor() -> (SemaphorePermit<'static>, ValgrindExecutor) {
154 static VALGRIND_SETUP: OnceCell<()> = OnceCell::const_new();
155
156 VALGRIND_SETUP
157 .get_or_init(|| async {
158 let executor = ValgrindExecutor;
159 let system_info = SystemInfo::new().unwrap();
160 executor.setup(&system_info, None).await.unwrap();
161 })
162 .await;
163 let _lock = acquire_bpf_instrumentation_lock().await;
164
165 (_lock, ValgrindExecutor)
166 }
167
168 fn valgrind_config(command: &str) -> ExecutorConfig {
169 ExecutorConfig {

Callers 2

test_valgrind_executorFunction · 0.85

Calls 2

setupMethod · 0.45

Tested by

no test coverage detected