pub struct DatabaseEvent<'db> { /* private fields */ }Available on macOS only.
Expand description
A single hardware performance counter event from the PMC database.
Each event describes one thing the CPU can count: retired instructions,
cache misses, branch mispredictions, micro-ops, and so on. The name
is the hardware-specific identifier (e.g. "INST_ALL"), while
alias provides a human-readable label when one exists
(e.g. "Instructions").
Implementations§
Trait Implementations§
Source§impl<'db> Clone for DatabaseEvent<'db>
impl<'db> Clone for DatabaseEvent<'db>
Source§fn clone(&self) -> DatabaseEvent<'db>
fn clone(&self) -> DatabaseEvent<'db>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'db> Debug for DatabaseEvent<'db>
impl<'db> Debug for DatabaseEvent<'db>
impl<'db> Copy for DatabaseEvent<'db>
Auto Trait Implementations§
impl<'db> Freeze for DatabaseEvent<'db>
impl<'db> RefUnwindSafe for DatabaseEvent<'db>
impl<'db> !Send for DatabaseEvent<'db>
impl<'db> !Sync for DatabaseEvent<'db>
impl<'db> Unpin for DatabaseEvent<'db>
impl<'db> UnsafeUnpin for DatabaseEvent<'db>
impl<'db> UnwindSafe for DatabaseEvent<'db>
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