Struct pfm::perf_event::PerfEvent
source · pub struct PerfEvent { /* private fields */ }
Implementations§
source§impl PerfEvent
impl PerfEvent
pub fn new(name: &str, inherit: bool) -> Result<Self, String>
pub fn set_exclude_kernel(&mut self, val: u64)
pub fn open(&mut self, pid: pid_t, cpu: c_int) -> Result<(), Error>
pub fn enable(&mut self) -> Result<(), Error>
pub fn disable(&mut self) -> Result<(), Error>
pub fn reset(&mut self) -> Result<(), Error>
pub fn read(&self) -> Result<PerfEventValue, Error>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for PerfEvent
impl Send for PerfEvent
impl Sync for PerfEvent
impl Unpin for PerfEvent
impl UnwindSafe for PerfEvent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more