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<u64Error>;
}

Abstract trait to control performance counters.

Required Methods

Reset performance counter.

Start measuring.

Stop measuring.

Read the counter value.

Implementors