pub struct ProfileSample {
pub thread_id: ThreadId,
pub timestamp: Instant,
pub sample_type: SampleType,
pub cpu_usage: f32,
pub memory_usage: u64,
pub call_stack: Option<CallStack>,
}
Expand description
A single profiling sample.
Fields§
§thread_id: ThreadId
Thread that generated this sample
timestamp: Instant
Sample timestamp
sample_type: SampleType
Sample type and data
cpu_usage: f32
CPU usage at time of sample (percentage)
memory_usage: u64
Memory usage at time of sample (bytes)
call_stack: Option<CallStack>
Call stack if available
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 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