Struct pmc::Running [−][src]
pub struct Running<'a> { /* fields omitted */ }
Expand description
A handle to a running PMC counter.
Dropping this handle causes the counter to stop recording events.
Implementations
Read the current counter value.
let mut counter = CounterConfig::default() .attach_to(vec![0]) .allocate("inst_retired.any")?; let handle = counter.start()?; println!("instructions: {}", handle.read()?);
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Running<'a>
impl<'a> !UnwindSafe for Running<'a>