pub enum SampleSkid {
Arbitrary = 0,
Constant = 1,
RequestZero = 2,
RequireZero = 3,
}Expand description
Configuration of how much skid is allowed when gathering samples.
Skid is the number of instructions that occur between an event occuring and a sample being gathered by the kernel. Less skid is better but there are hardware limitations around how small the skid can be.
Also see Builder::precise_ip.
Variants§
Arbitrary = 0
There may be an arbitrary number of instructions between the event and the recorded instruction pointer.
Constant = 1
There may be a constant number of instructions between the event and and the recorded instruction pointer.
RequestZero = 2
We’ve requested that there be 0 skid. This does not guarantee that samples will actually have 0 skid.
RequireZero = 3
Skid must be 0. If skid is 0 then the generated sample records will
have the PERF_RECORD_MISC_EXACT_IP bit set.
Trait Implementations§
Source§impl Clone for SampleSkid
impl Clone for SampleSkid
Source§fn clone(&self) -> SampleSkid
fn clone(&self) -> SampleSkid
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 SampleSkid
impl Debug for SampleSkid
Source§impl Hash for SampleSkid
impl Hash for SampleSkid
Source§impl PartialEq for SampleSkid
impl PartialEq for SampleSkid
impl Copy for SampleSkid
impl Eq for SampleSkid
impl StructuralPartialEq for SampleSkid
Auto Trait Implementations§
impl Freeze for SampleSkid
impl RefUnwindSafe for SampleSkid
impl Send for SampleSkid
impl Sync for SampleSkid
impl Unpin for SampleSkid
impl UnwindSafe for SampleSkid
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