pub struct ProfilerConfig {
pub event_profiling: bool,
pub sampling_profiling: bool,
pub sampling_interval_ns: u64,
pub max_events: usize,
pub track_gc: bool,
pub track_allocs: bool,
}Expand description
Configuration for the runtime profiler.
Fields§
§event_profiling: boolWhether event-based profiling is enabled.
sampling_profiling: boolWhether sampling-based profiling is enabled.
sampling_interval_ns: u64Sampling interval in nanoseconds.
max_events: usizeMaximum number of events to store before overwriting old ones.
track_gc: boolWhether to include GC events.
track_allocs: boolWhether to include allocation events.
Implementations§
Source§impl ProfilerConfig
impl ProfilerConfig
Sourcepub fn enable_all(self) -> Self
pub fn enable_all(self) -> Self
Enable all profiling.
Sourcepub fn disable_all(self) -> Self
pub fn disable_all(self) -> Self
Disable all profiling.
Trait Implementations§
Source§impl Clone for ProfilerConfig
impl Clone for ProfilerConfig
Source§fn clone(&self) -> ProfilerConfig
fn clone(&self) -> ProfilerConfig
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 moreSource§impl Debug for ProfilerConfig
impl Debug for ProfilerConfig
Auto Trait Implementations§
impl Freeze for ProfilerConfig
impl RefUnwindSafe for ProfilerConfig
impl Send for ProfilerConfig
impl Sync for ProfilerConfig
impl Unpin for ProfilerConfig
impl UnsafeUnpin for ProfilerConfig
impl UnwindSafe for ProfilerConfig
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