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 11 cfg_metrics! { 12 mod batch; 13 pub(crate) use batch::MetricsBatch; 14 15 mod histogram; 16 pub(crate) use histogram::{Histogram, HistogramBatch, HistogramBuilder}; 17 #[allow(unreachable_pub)] // rust-lang/rust#57411 18 pub use histogram::HistogramScale; 19 20 mod runtime; 21 #[allow(unreachable_pub)] // rust-lang/rust#57411 22 pub use runtime::RuntimeMetrics; 23 24 mod scheduler; 25 pub(crate) use scheduler::SchedulerMetrics; 26 27 mod worker; 28 pub(crate) use worker::WorkerMetrics; 29 30 cfg_net! { 31 mod io; 32 pub(crate) use io::IoDriverMetrics; 33 } 34 } 35 36 cfg_not_metrics! { 37 mod mock; 38 39 pub(crate) use mock::{SchedulerMetrics, WorkerMetrics, MetricsBatch, HistogramBuilder}; 40 } 41