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)]
1011mod runtime;
12pub use runtime::RuntimeMetrics;
1314cfg_unstable_metrics! {
15mod batch;
16pub(crate) use batch::MetricsBatch;
1718mod histogram;
19pub(crate) use histogram::{Histogram, HistogramBatch, HistogramBuilder};
20#[allow(unreachable_pub)] // rust-lang/rust#57411
21pub use histogram::{HistogramScale, HistogramConfiguration, LogHistogram, LogHistogramBuilder, InvalidHistogramConfiguration};
222324mod scheduler;
25pub(crate) use scheduler::SchedulerMetrics;
2627mod worker;
28pub(crate) use worker::WorkerMetrics;
2930cfg_net! {
31mod io;
32pub(crate) use io::IoDriverMetrics;
33 }
34}
3536cfg_not_unstable_metrics! {
37mod mock;
3839pub(crate) use mock::{SchedulerMetrics, WorkerMetrics, MetricsBatch, HistogramBuilder};
40}