pub struct InstrumentationCounters {
pub function_entry: u64,
pub branch_taken: Vec<u64>,
pub branch_not_taken: Vec<u64>,
pub value_profiles: Vec<u64>,
}Fields§
§function_entry: u64§branch_taken: Vec<u64>§branch_not_taken: Vec<u64>§value_profiles: Vec<u64>Implementations§
Source§impl InstrumentationCounters
impl InstrumentationCounters
pub fn new(branch_count: usize, value_count: usize) -> Self
pub fn record_entry(&mut self)
pub fn record_branch(&mut self, branch_id: usize, taken: bool)
pub fn record_value(&mut self, value_id: usize, _value: u64)
pub fn branch_bias(&self, branch_id: usize) -> Option<f64>
pub fn serialize(&self) -> Vec<u64>
Trait Implementations§
Source§impl Clone for InstrumentationCounters
impl Clone for InstrumentationCounters
Source§fn clone(&self) -> InstrumentationCounters
fn clone(&self) -> InstrumentationCounters
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 InstrumentationCounters
impl RefUnwindSafe for InstrumentationCounters
impl Send for InstrumentationCounters
impl Sync for InstrumentationCounters
impl Unpin for InstrumentationCounters
impl UnsafeUnpin for InstrumentationCounters
impl UnwindSafe for InstrumentationCounters
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