Enum starlark::eval::ProfileMode
source · #[non_exhaustive]pub enum ProfileMode {
HeapSummaryAllocated,
HeapSummaryRetained,
HeapFlameAllocated,
HeapFlameRetained,
Statement,
Coverage,
Bytecode,
BytecodePairs,
TimeFlame,
Typecheck,
}
Expand description
How to profile starlark code.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
HeapSummaryAllocated
The heap profile mode provides information about the time spent in each function and allocations performed by each function. Enabling this mode the side effect of disabling garbage-collection. This profiling mode is the recommended one.
HeapSummaryRetained
Like heap summary, but information about retained memory after module is frozen.
HeapFlameAllocated
Like heap profile, but writes output comparible with flamegraph.pl.
HeapFlameRetained
Like heap flame, but information about retained memory after module is frozen.
Statement
The statement profile mode provides information about time spent in each statement.
Coverage
Code coverage.
Bytecode
The bytecode profile mode provides information about bytecode instructions.
BytecodePairs
The bytecode profile mode provides information about bytecode instruction pairs.
TimeFlame
Provide output compatible with flamegraph.pl.
Typecheck
Profile runtime typechecking.
Trait Implementations§
source§impl Allocative for ProfileMode
impl Allocative for ProfileMode
source§impl Clone for ProfileMode
impl Clone for ProfileMode
source§fn clone(&self) -> ProfileMode
fn clone(&self) -> ProfileMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProfileMode
impl Debug for ProfileMode
source§impl Display for ProfileMode
impl Display for ProfileMode
source§impl FromStr for ProfileMode
impl FromStr for ProfileMode
source§impl Hash for ProfileMode
impl Hash for ProfileMode
source§impl PartialEq for ProfileMode
impl PartialEq for ProfileMode
source§fn eq(&self, other: &ProfileMode) -> bool
fn eq(&self, other: &ProfileMode) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for ProfileMode
impl StructuralPartialEq for ProfileMode
Auto Trait Implementations§
impl RefUnwindSafe for ProfileMode
impl Send for ProfileMode
impl Sync for ProfileMode
impl Unpin for ProfileMode
impl UnwindSafe for ProfileMode
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.