pub struct Throttle {
pub time: u64,
pub id: u64,
pub stream_id: u64,
}
Expand description
Record for a throttle or unthrottle events.
These are generated when the sampler generates too many events during a given timer tick. In that case, the kernel will disable the counter for the rest of the tick and instead generate a throttle/unthrottle record pair indicating when throttling started and ended.
This struct is used for both PERF_RECORD_THROTTLE
and
PERF_RECORD_UNTHROTTLE
. See the manpage for more documentation.
Fields§
§time: u64
§id: u64
§stream_id: u64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Throttle
impl RefUnwindSafe for Throttle
impl Send for Throttle
impl Sync for Throttle
impl Unpin for Throttle
impl UnwindSafe for Throttle
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