From 168eb8e01d3cdbd6358e11cf399fbf4ef1db358b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 9 Jun 2023 13:52:51 +0200 Subject: perf: add Tokio runtime monitor (#19415) This commit adds ability to print metrics of the Tokio runtime to the console by passing "DENO_TOKIO_METRICS=1" env var. Metrics will be printed every second, but this can be changed by "DENO_TOKIO_METRICS_INTERVAL=500" env var. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 86b2518ad..47a416d2e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -135,6 +135,7 @@ tar = "=0.4.38" tempfile = "3.4.0" thiserror = "1.0.40" tokio = { version = "1.28.1", features = ["full"] } +tokio-metrics = { version = "0.2.2", features = ["rt"] } tokio-rustls = "0.24.0" tokio-util = "0.7.4" tower-lsp = { version = "=0.17.0", features = ["proposed"] } -- cgit v1.2.3