pub struct ProfilerConfig {
pub sample_interval_ms: u64,
pub enable_perf: bool,
pub enable_jemalloc: bool,
pub enable_threads: bool,
pub max_samples: usize,
pub benchmark_name: String,
pub server_port: Option<u16>,
pub server_socket: Option<PathBuf>,
pub server_grpc_port: Option<u16>,
}Expand description
Configuration for the profiler
Fields§
§sample_interval_ms: u64Sampling interval in milliseconds
enable_perf: boolEnable hardware performance counters
enable_jemalloc: boolEnable jemalloc statistics
enable_threads: boolEnable thread pool monitoring
max_samples: usizeMaximum number of samples to keep in memory
benchmark_name: StringBenchmark name
server_port: Option<u16>Query server TCP port (None = disabled). Requires server feature.
Also reads SYMBIOT_PORT env var at startup.
server_socket: Option<PathBuf>Unix domain socket path (None = disabled). Requires server-uds feature.
Also reads SYMBIOT_SOCK env var at startup.
server_grpc_port: Option<u16>gRPC server port (None = disabled). Requires server-grpc feature.
Also reads SYMBIOT_GRPC_PORT env var at startup.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more