pub struct CpuProfilingConfig {
pub enabled: bool,
pub sampling_frequency_hz: u64,
pub max_samples: usize,
pub profile_duration_secs: u64,
pub max_stack_depth: usize,
pub call_graph_enabled: bool,
}
Expand description
CPU profiling configuration
Fields§
§enabled: bool
Enable CPU profiling
sampling_frequency_hz: u64
Sampling frequency in Hz
max_samples: usize
Maximum number of samples to keep
profile_duration_secs: u64
Profile duration in seconds
max_stack_depth: usize
Stack depth limit
call_graph_enabled: bool
Enable call graph generation
Trait Implementations§
Source§impl Clone for CpuProfilingConfig
impl Clone for CpuProfilingConfig
Source§fn clone(&self) -> CpuProfilingConfig
fn clone(&self) -> CpuProfilingConfig
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 CpuProfilingConfig
impl Debug for CpuProfilingConfig
Source§impl<'de> Deserialize<'de> for CpuProfilingConfig
impl<'de> Deserialize<'de> for CpuProfilingConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CpuProfilingConfig
impl RefUnwindSafe for CpuProfilingConfig
impl Send for CpuProfilingConfig
impl Sync for CpuProfilingConfig
impl Unpin for CpuProfilingConfig
impl UnwindSafe for CpuProfilingConfig
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