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;
1314mod batch;
15pub(crate) use batch::MetricsBatch;
1617mod worker;
18pub(crate) use worker::WorkerMetrics;
1920cfg_unstable_metrics! {
2122mod histogram;
23pub(crate) use histogram::{Histogram, HistogramBatch, HistogramBuilder};
2425#[allow(unreachable_pub)] // rust-lang/rust#57411
26pub use histogram::{HistogramScale, HistogramConfiguration, LogHistogram, LogHistogramBuilder, InvalidHistogramConfiguration};
2728mod scheduler;
29pub(crate) use scheduler::SchedulerMetrics;
3031cfg_net! {
32mod io;
33pub(crate) use io::IoDriverMetrics;
34 }
35}
3637cfg_not_unstable_metrics! {
38mod mock;
39pub(crate) use mock::{SchedulerMetrics, HistogramBuilder};
40}