pub struct CpuSample {
pub timestamp: Timestamp,
pub pid: Pid,
pub tid: Tid,
pub cpu_id: CpuId,
pub user_stack: StackTrace,
pub kernel_stack: StackTrace,
pub comm: String,
pub user_stack_symbols: Vec<Option<String>>,
pub kernel_stack_symbols: Vec<Option<String>>,
}Expand description
CPU profiling sample event
Fields§
§timestamp: TimestampTimestamp when the sample was taken
pid: PidProcess ID
tid: TidThread ID
cpu_id: CpuIdCPU core where the sample was taken
user_stack: StackTraceUser-space stack trace
kernel_stack: StackTraceKernel-space stack trace
comm: StringProcess name (comm)
user_stack_symbols: Vec<Option<String>>Pre-resolved symbol names for user_stack IPs (parallel array, same length)
kernel_stack_symbols: Vec<Option<String>>Pre-resolved symbol names for kernel_stack IPs (parallel array, same length)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CpuSample
impl<'de> Deserialize<'de> for CpuSample
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CpuSample
impl RefUnwindSafe for CpuSample
impl Send for CpuSample
impl Sync for CpuSample
impl Unpin for CpuSample
impl UnsafeUnpin for CpuSample
impl UnwindSafe for CpuSample
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