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

Function deactivate_rolling_buffer

src/local_logger/rolling_buffer/mod.rs:325–335  ·  view source on GitHub ↗

Finish and deactivate the current rolling buffer.

()

Source from the content-addressed store, hash-verified

323
324/// Finish and deactivate the current rolling buffer.
325pub fn deactivate_rolling_buffer() {
326 // Stop the tick thread first
327 TICK_STOP.store(true, Ordering::Relaxed);
328
329 if let Ok(mut guard) = ROLLING_BUFFER.lock() {
330 if let Some(rb) = guard.as_mut() {
331 rb.finish();
332 }
333 *guard = None;
334 }
335}
336
337#[cfg(test)]
338mod tests;

Callers 1

run_executorFunction · 0.85

Calls 1

finishMethod · 0.45

Tested by

no test coverage detected