pub struct ThreadProfileData {
pub thread_id: ThreadId,
pub sample_count: u64,
pub total_cpu_time: u64,
pub peak_memory_usage: u64,
pub avg_cpu_usage: f32,
pub context_switches: u64,
pub top_functions: Vec<FunctionProfile>,
}
Expand description
Per-thread profiling data.
Fields§
§thread_id: ThreadId
Thread ID
sample_count: u64
Number of samples for this thread
total_cpu_time: u64
Total CPU time observed (nanoseconds)
peak_memory_usage: u64
Peak memory usage
avg_cpu_usage: f32
Average CPU usage percentage
context_switches: u64
Context switches initiated by this thread
top_functions: Vec<FunctionProfile>
Top functions by CPU time
Trait Implementations§
Source§impl Clone for ThreadProfileData
impl Clone for ThreadProfileData
Source§fn clone(&self) -> ThreadProfileData
fn clone(&self) -> ThreadProfileData
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 ThreadProfileData
impl RefUnwindSafe for ThreadProfileData
impl Send for ThreadProfileData
impl Sync for ThreadProfileData
impl Unpin for ThreadProfileData
impl UnwindSafe for ThreadProfileData
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