Enum deno_core::stats::RuntimeActivity
source · pub enum RuntimeActivity {
AsyncOp(PromiseId, Option<RuntimeActivityTrace>, &'static str),
Resource(ResourceId, Option<RuntimeActivityTrace>, String),
Timer(usize, Option<RuntimeActivityTrace>),
Interval(usize, Option<RuntimeActivityTrace>),
}
Expand description
The type of runtime activity being tracked.
Variants§
AsyncOp(PromiseId, Option<RuntimeActivityTrace>, &'static str)
An async op, including the promise ID and op name, with an optional trace.
Resource(ResourceId, Option<RuntimeActivityTrace>, String)
A resource, including the resource ID and name, with an optional trace.
Timer(usize, Option<RuntimeActivityTrace>)
A timer, including the timer ID, with an optional trace.
Interval(usize, Option<RuntimeActivityTrace>)
An interval, including the interval ID, with an optional trace.
Implementations§
source§impl RuntimeActivity
impl RuntimeActivity
pub fn activity(&self) -> RuntimeActivityType
Trait Implementations§
source§impl Debug for RuntimeActivity
impl Debug for RuntimeActivity
Auto Trait Implementations§
impl RefUnwindSafe for RuntimeActivity
impl !Send for RuntimeActivity
impl !Sync for RuntimeActivity
impl Unpin for RuntimeActivity
impl UnwindSafe for RuntimeActivity
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