tokio/runtime/metrics/
mod.rs

1//! This module contains information need to view information about how the
2//! runtime is performing.
3//!
4//! **Note**: This is an [unstable API][unstable]. The public API of types in
5//! this module may break in 1.x releases. See [the documentation on unstable
6//! features][unstable] for details.
7//!
8//! [unstable]: crate#unstable-features
9#![allow(clippy::module_inception)]
10
11mod runtime;
12pub use runtime::RuntimeMetrics;
13
14mod batch;
15pub(crate) use batch::MetricsBatch;
16
17mod worker;
18pub(crate) use worker::WorkerMetrics;
19
20cfg_unstable_metrics! {
21
22    mod histogram;
23    pub(crate) use histogram::{Histogram, HistogramBatch, HistogramBuilder};
24
25    #[allow(unreachable_pub)] // rust-lang/rust#57411
26    pub use histogram::{HistogramScale, HistogramConfiguration, LogHistogram, LogHistogramBuilder, InvalidHistogramConfiguration};
27
28    mod scheduler;
29    pub(crate) use scheduler::SchedulerMetrics;
30
31    cfg_net! {
32        mod io;
33        pub(crate) use io::IoDriverMetrics;
34    }
35}
36
37cfg_not_unstable_metrics! {
38    mod mock;
39    pub(crate) use mock::{SchedulerMetrics, HistogramBuilder};
40}