Struct deno_core::OpsTracker
source · [−]pub struct OpsTracker { /* private fields */ }
Implementations
sourceimpl OpsTracker
impl OpsTracker
pub fn new(ops_count: usize) -> Self
pub fn per_op(&self) -> Vec<OpMetrics>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn aggregate(&self) -> OpMetrics
pub fn track_sync(&self, id: OpId)
pub fn track_async(&self, id: OpId)
pub fn track_async_completed(&self, id: OpId)
Trait Implementations
sourceimpl Debug for OpsTracker
impl Debug for OpsTracker
sourceimpl Default for OpsTracker
impl Default for OpsTracker
sourcefn default() -> OpsTracker
fn default() -> OpsTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for OpsTracker
impl Send for OpsTracker
impl !Sync for OpsTracker
impl Unpin for OpsTracker
impl UnwindSafe for OpsTracker
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more