Struct deno_core::stats::RuntimeActivityTraces
source · pub struct RuntimeActivityTraces { /* private fields */ }
Implementations§
source§impl RuntimeActivityTraces
impl RuntimeActivityTraces
pub fn is_enabled(&self) -> bool
pub fn count(&self) -> usize
pub fn get_all(&self, f: impl FnMut(RuntimeActivityType, usize, &str))
pub fn capture(&self) -> [BTreeMap<usize, Rc<str>>; 4]
pub fn get<T>( &self, activity_type: RuntimeActivityType, id: usize, f: impl FnOnce(Option<&str>) -> T ) -> T
Trait Implementations§
source§impl Default for RuntimeActivityTraces
impl Default for RuntimeActivityTraces
source§fn default() -> RuntimeActivityTraces
fn default() -> RuntimeActivityTraces
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeActivityTraces
impl !Send for RuntimeActivityTraces
impl !Sync for RuntimeActivityTraces
impl Unpin for RuntimeActivityTraces
impl UnwindSafe for RuntimeActivityTraces
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