pub enum SampleType {
CpuSample {
instruction_pointer: u64,
cpu_time_delta: u64,
},
MemoryAllocation {
size: u64,
allocation_type: AllocationType,
},
MemoryDeallocation {
size: u64,
},
ContextSwitch {
from_thread: ThreadId,
to_thread: ThreadId,
switch_latency_ns: u64,
switch_reason: ContextSwitchReason,
},
SchedulerDecision {
ready_queue_length: usize,
selected_priority: u8,
decision_latency_ns: u64,
},
LockContention {
lock_address: u64,
wait_time_ns: u64,
waiter_count: u32,
},
}
Expand description
Types of profiling samples.
Variants§
CpuSample
CPU execution sample
Fields
MemoryAllocation
Memory allocation sample
MemoryDeallocation
Memory deallocation sample
ContextSwitch
Context switch sample
Fields
§
switch_reason: ContextSwitchReason
Switch reason
SchedulerDecision
Scheduler decision sample
Fields
LockContention
Lock contention sample
Trait Implementations§
Source§impl Clone for SampleType
impl Clone for SampleType
Source§fn clone(&self) -> SampleType
fn clone(&self) -> SampleType
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 SampleType
impl RefUnwindSafe for SampleType
impl Send for SampleType
impl Sync for SampleType
impl Unpin for SampleType
impl UnwindSafe for SampleType
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