pub struct PerfEvent(/* private fields */);Expand description
Compteur/échantillonneur perf_event. Drop ferme le FD.
Implementations§
Source§impl PerfEvent
impl PerfEvent
Sourcepub fn read_count(&self) -> Result<u64, Errno>
pub fn read_count(&self) -> Result<u64, Errno>
Lit la valeur scalaire du compteur (read_format simple).
§Errors
Errno::EINVAL: lecture incohérente avec leread_format.Errno::EBADF: FD invalide.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PerfEvent
impl RefUnwindSafe for PerfEvent
impl Send for PerfEvent
impl Sync for PerfEvent
impl Unpin for PerfEvent
impl UnsafeUnpin 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