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 runtime; 16 #[allow(unreachable_pub)] // rust-lang/rust#57411 17 pub use runtime::RuntimeMetrics; 18 19 mod scheduler; 20 pub(crate) use scheduler::SchedulerMetrics; 21 22 mod worker; 23 pub(crate) use worker::WorkerMetrics; 24 25 cfg_net! { 26 mod io; 27 pub(crate) use io::IoDriverMetrics; 28 } 29 } 30 31 cfg_not_metrics! { 32 mod mock; 33 34 pub(crate) use mock::{SchedulerMetrics, WorkerMetrics, MetricsBatch}; 35 } 36