From f3bfed30eb66d60c3c28691c1dd040c6531a337b Mon Sep 17 00:00:00 2001 From: Kenny <86278669+kvcache@users.noreply.github.com> Date: Fri, 19 Apr 2024 01:07:55 -0700 Subject: [PATCH] metrics: document `Runtime::metrics` (#6496) --- tokio/src/runtime/runtime.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tokio/src/runtime/runtime.rs b/tokio/src/runtime/runtime.rs index 917c3f8ce..ec5b65faa 100644 --- a/tokio/src/runtime/runtime.rs +++ b/tokio/src/runtime/runtime.rs @@ -491,7 +491,8 @@ impl std::panic::RefUnwindSafe for Runtime {} cfg_metrics! { impl Runtime { - /// TODO + /// Returns a view that lets you get information about how the runtime + /// is performing. pub fn metrics(&self) -> crate::runtime::RuntimeMetrics { self.handle.metrics() }