pub struct Sample<'a>(/* private fields */);
Expand description
A sample emitted by the kernel.
See the manpage for documentation on what each of the individual fields mean.
Implementations§
Source§impl<'a> Sample<'a>
impl<'a> Sample<'a>
pub fn id(&self) -> Option<u64>
pub fn ip(&self) -> Option<u64>
pub fn pid(&self) -> Option<u32>
pub fn tid(&self) -> Option<u32>
pub fn time(&self) -> Option<u64>
pub fn addr(&self) -> Option<u64>
pub fn stream_id(&self) -> Option<u64>
pub fn cpu(&self) -> Option<u32>
pub fn period(&self) -> Option<u64>
pub fn values(&self) -> Option<&ReadGroup<'a>>
pub fn callchain(&self) -> Option<&[u64]>
pub fn raw(&self) -> Option<&[u8]>
pub fn lbr_hw_index(&self) -> Option<u64>
pub fn lbr(&self) -> Option<&[BranchEntry]>
pub fn regs_user(&self) -> Option<&Registers<'a>>
pub fn stack_user(&self) -> Option<&[u8]>
pub fn weight(&self) -> Option<u64>
pub fn data_src(&self) -> Option<DataSource>
pub fn transaction(&self) -> Option<Txn>
pub fn regs_intr(&self) -> Option<&Registers<'a>>
pub fn phys_addr(&self) -> Option<u64>
pub fn aux(&self) -> Option<&[u8]>
pub fn cgroup(&self) -> Option<u64>
pub fn data_page_size(&self) -> Option<u64>
pub fn code_page_size(&self) -> Option<u64>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Sample<'a>
impl<'a> RefUnwindSafe for Sample<'a>
impl<'a> Send for Sample<'a>
impl<'a> Sync for Sample<'a>
impl<'a> Unpin for Sample<'a>
impl<'a> UnwindSafe for Sample<'a>
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