pub struct RuntimeMetricsOpts {
pub poll_time_histogram: bool,
pub poll_time_histogram_scale: Option<RuntimeMetricsPollTimeHistogramScale>,
pub poll_time_histogram_resolution: Option<Duration>,
pub poll_time_histogram_buckets: Option<usize>,
}Expand description
Configuration options for runtime metrics collection.
Fields§
§poll_time_histogram: boolEnable Tokio’s poll-time histogram on the runtime.
This must be configured before the runtime is built. Enabling it adds two timestamp reads to every task poll.
poll_time_histogram_scale: Option<RuntimeMetricsPollTimeHistogramScale>Histogram bucket scale for Tokio’s poll-time histogram.
poll_time_histogram_resolution: Option<Duration>Width of the first histogram bucket.
poll_time_histogram_buckets: Option<usize>Number of histogram buckets. Memory usage scales with runtimes × workers × buckets.
Trait Implementations§
Source§impl Clone for RuntimeMetricsOpts
impl Clone for RuntimeMetricsOpts
Source§fn clone(&self) -> RuntimeMetricsOpts
fn clone(&self) -> RuntimeMetricsOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RuntimeMetricsOpts
impl Debug for RuntimeMetricsOpts
Source§impl Default for RuntimeMetricsOpts
impl Default for RuntimeMetricsOpts
Source§fn default() -> RuntimeMetricsOpts
fn default() -> RuntimeMetricsOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RuntimeMetricsOpts
impl RefUnwindSafe for RuntimeMetricsOpts
impl Send for RuntimeMetricsOpts
impl Sync for RuntimeMetricsOpts
impl Unpin for RuntimeMetricsOpts
impl UnsafeUnpin for RuntimeMetricsOpts
impl UnwindSafe for RuntimeMetricsOpts
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