macro_rules! unpause {
() => { ... };
}
Expand description
Resume all paused profiling timers globally
After resuming, new timing measurements will be recorded normally.
This affects all profile!()
, profile_async!()
, and scoped_timer!()
operations.
ยงExample
use quantum_pulse::{profile, pause, unpause, Operation};
use std::fmt::Debug;
#[derive(Debug)]
enum AppOperation {
ImportantWork,
}
impl Operation for AppOperation {}
// Pause profiling
pause!();
// This won't be recorded
profile!(AppOperation::ImportantWork, {
some_work();
});
// Resume profiling
unpause!();
// This will be recorded
profile!(AppOperation::ImportantWork, {
more_work();
});