pub struct GlobalInstrumentationRegistry { /* private fields */ }Implementations§
Source§impl GlobalInstrumentationRegistry
impl GlobalInstrumentationRegistry
pub fn new() -> Self
pub fn register( &mut self, name: impl Into<String>, branches: usize, values: usize, )
pub fn get_mut(&mut self, name: &str) -> Option<&mut InstrumentationCounters>
pub fn get(&self, name: &str) -> Option<&InstrumentationCounters>
pub fn total_entries(&self) -> u64
pub fn function_count(&self) -> usize
pub fn export_profile(&self) -> Vec<SampleRecord>
Auto Trait Implementations§
impl Freeze for GlobalInstrumentationRegistry
impl RefUnwindSafe for GlobalInstrumentationRegistry
impl Send for GlobalInstrumentationRegistry
impl Sync for GlobalInstrumentationRegistry
impl Unpin for GlobalInstrumentationRegistry
impl UnsafeUnpin for GlobalInstrumentationRegistry
impl UnwindSafe for GlobalInstrumentationRegistry
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