pub enum SwitchCpuWide {
In {
pid: u32,
tid: u32,
},
Out {
pid: u32,
tid: u32,
},
}Expand description
SWITCH_CPU_WIDE records indicates a context switch when profiling in cpu-wide mode.
It provides some additional info on the process being switched that is not provided by SWITCH.
If the PERF_RECORD_MISC_SWITCH_OUT bit is set within the record header
then it was a context switch away from the current process, otherwise it is
a context switch into the current process.
This enum corresponds to PERF_RECORD_SWITCH_CPU_WIDE. See the manpage
for more documentation.
Variants§
In
A context switch into the current process.
Fields
Out
A context switch away from the current process.
Implementations§
Trait Implementations§
Source§impl Clone for SwitchCpuWide
impl Clone for SwitchCpuWide
Source§fn clone(&self) -> SwitchCpuWide
fn clone(&self) -> SwitchCpuWide
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 moreSource§impl Debug for SwitchCpuWide
impl Debug for SwitchCpuWide
Source§impl<'a> From<SwitchCpuWide> for Record<'a>
impl<'a> From<SwitchCpuWide> for Record<'a>
Source§fn from(value: SwitchCpuWide) -> Self
fn from(value: SwitchCpuWide) -> Self
Converts to this type from the input type.
Source§impl<'p> Parse<'p> for SwitchCpuWide
impl<'p> Parse<'p> for SwitchCpuWide
impl Copy for SwitchCpuWide
Auto Trait Implementations§
impl Freeze for SwitchCpuWide
impl RefUnwindSafe for SwitchCpuWide
impl Send for SwitchCpuWide
impl Sync for SwitchCpuWide
impl Unpin for SwitchCpuWide
impl UnwindSafe for SwitchCpuWide
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