mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-25 00:00:18 +02:00
metrics: stabilize RuntimeMetrics::worker_count (#6556)
This commit is contained in:
@@ -40,7 +40,7 @@ impl SpawnerMetrics {
|
||||
self.num_idle_threads.load(Ordering::Relaxed)
|
||||
}
|
||||
|
||||
cfg_metrics! {
|
||||
cfg_unstable_metrics! {
|
||||
fn queue_depth(&self) -> usize {
|
||||
self.queue_depth.load(Ordering::Relaxed)
|
||||
}
|
||||
@@ -474,7 +474,7 @@ impl Spawner {
|
||||
}
|
||||
}
|
||||
|
||||
cfg_metrics! {
|
||||
cfg_unstable_metrics! {
|
||||
impl Spawner {
|
||||
pub(crate) fn num_threads(&self) -> usize {
|
||||
self.inner.metrics.num_threads()
|
||||
|
||||
Reference in New Issue
Block a user