pub struct Performance;Expand description
Capture and emit compact benchmark counter markers.
Implementations§
Source§impl Performance
impl Performance
Sourcepub fn measure(label: &str)
pub fn measure(label: &str)
Print one ICTK marker for label using the current counters.
Pair labels ending in :start and :end for host-side span analysis.
Sourcepub fn counters() -> BenchmarkCounters
pub fn counters() -> BenchmarkCounters
Read the instruction, Wasm heap, stable-memory, and allocation counters.
total_allocation is currently reserved and emitted as zero.
Auto Trait Implementations§
impl Freeze for Performance
impl RefUnwindSafe for Performance
impl Send for Performance
impl Sync for Performance
impl Unpin for Performance
impl UnsafeUnpin for Performance
impl UnwindSafe for Performance
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