pub struct InstructionNumberReader { /* private fields */ }Implementations§
source§impl InstructionNumberReader
impl InstructionNumberReader
sourcepub fn new(pid: Option<pid_t>) -> Result<Self>
pub fn new(pid: Option<pid_t>) -> Result<Self>
pid: This measures the specified process/thread on any CPU. Set to None if measures all processes/threads on any cpu is wanted.
§Errors
If there is an error when calling the syscall, it will return an error
sourcepub fn instant_of_spec(&self, cpu: c_int) -> Result<InstructionNumberInstant>
pub fn instant_of_spec(&self, cpu: c_int) -> Result<InstructionNumberInstant>
§Errors
If there is an error when calling the syscall, it will return an error
sourcepub fn instant_of_all(&self) -> Result<InstructionNumberInstant>
pub fn instant_of_all(&self) -> Result<InstructionNumberInstant>
§Errors
If there is an error when calling the syscall, it will return an error
Trait Implementations§
source§impl Debug for InstructionNumberReader
impl Debug for InstructionNumberReader
Auto Trait Implementations§
impl Freeze for InstructionNumberReader
impl RefUnwindSafe for InstructionNumberReader
impl !Send for InstructionNumberReader
impl !Sync for InstructionNumberReader
impl Unpin for InstructionNumberReader
impl UnwindSafe for InstructionNumberReader
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