pub enum ProfilingEvent {
FunctionCall {
name: String,
depth: u32,
},
FunctionReturn {
name: String,
duration_ns: u64,
},
Allocation {
size: usize,
tag: String,
},
Deallocation {
size: usize,
tag: String,
},
GcCycle {
collected: usize,
live: usize,
},
TacticStep {
tactic_name: String,
goal_count: u32,
},
}Expand description
A single profiling event captured by the runtime.
Variants§
FunctionCall
A function was called.
FunctionReturn
A function returned.
Allocation
Memory was allocated.
Deallocation
Memory was freed.
GcCycle
A garbage collection cycle completed.
TacticStep
A tactic step was executed.
Trait Implementations§
Source§impl Clone for ProfilingEvent
impl Clone for ProfilingEvent
Source§fn clone(&self) -> ProfilingEvent
fn clone(&self) -> ProfilingEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProfilingEvent
impl RefUnwindSafe for ProfilingEvent
impl Send for ProfilingEvent
impl Sync for ProfilingEvent
impl Unpin for ProfilingEvent
impl UnsafeUnpin for ProfilingEvent
impl UnwindSafe for ProfilingEvent
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