metrics: stabilize RuntimeMetrics::worker_count (#6556)

This commit is contained in:
Russell Cohen
2024-05-28 21:55:20 +02:00
committed by GitHub
parent 9e00b266e0
commit 86658bd87d
24 changed files with 877 additions and 880 deletions
+2 -2
View File
@@ -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()