Trait perfcnt::AbstractPerfCounter
[−]
[src]
pub trait AbstractPerfCounter { fn reset(&self) -> Result<(), Error>; fn start(&self) -> Result<(), Error>; fn stop(&self) -> Result<(), Error>; fn read(&mut self) -> Result<u64, Error>; }
Abstract trait to control performance counters.
Required Methods
fn reset(&self) -> Result<(), Error>
Reset performance counter.
fn start(&self) -> Result<(), Error>
Start measuring.
fn stop(&self) -> Result<(), Error>
Stop measuring.
fn read(&mut self) -> Result<u64, Error>
Read the counter value.
Implementors
impl<'a> AbstractPerfCounter for PerfCounter