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§impl Debug for RuntimeMetricsOpts
impl Debug for RuntimeMetricsOpts
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