pub struct Profiler { /* private fields */ }Implementations§
Source§impl Profiler
impl Profiler
pub fn new() -> Self
pub fn record_backedge(&mut self, func_idx: usize, ip: usize) -> u32
pub fn is_hot(&self, func_idx: usize, ip: usize, threshold: u32) -> bool
pub fn get_count(&self, func_idx: usize, ip: usize) -> u32
pub fn mark_hot(&mut self, func_idx: usize, ip: usize)
pub fn hot_spots(&self) -> &[HotSpot]
pub fn reset(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Profiler
impl RefUnwindSafe for Profiler
impl Send for Profiler
impl Sync for Profiler
impl Unpin for Profiler
impl UnwindSafe for Profiler
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