pub struct ProfileSample {
pub timestamp_ns: u64,
pub call_stack: Vec<String>,
pub thread_id: u64,
}Expand description
A single sample captured by the sampling profiler.
Fields§
§timestamp_ns: u64Timestamp in nanoseconds.
call_stack: Vec<String>Call stack at the time of sampling (most recent first).
thread_id: u64Thread identifier (0 for main thread).
Implementations§
Source§impl ProfileSample
impl ProfileSample
Trait Implementations§
Source§impl Clone for ProfileSample
impl Clone for ProfileSample
Source§fn clone(&self) -> ProfileSample
fn clone(&self) -> ProfileSample
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 moreAuto Trait Implementations§
impl Freeze for ProfileSample
impl RefUnwindSafe for ProfileSample
impl Send for ProfileSample
impl Sync for ProfileSample
impl Unpin for ProfileSample
impl UnsafeUnpin for ProfileSample
impl UnwindSafe for ProfileSample
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