From 9d70ea2e9f03d7c12407f117cf11d2a99d55c8f8 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Sun, 21 Feb 2021 19:20:31 +0100 Subject: feat(unstable): per op metrics (#9240) --- runtime/js/30_metrics.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'runtime/js') diff --git a/runtime/js/30_metrics.js b/runtime/js/30_metrics.js index 30fa7cf80..ed062fce3 100644 --- a/runtime/js/30_metrics.js +++ b/runtime/js/30_metrics.js @@ -5,7 +5,11 @@ const core = window.Deno.core; function metrics() { - return core.jsonOpSync("op_metrics"); + const { combined, ops } = core.jsonOpSync("op_metrics"); + if (ops) { + combined.ops = ops; + } + return combined; } window.__bootstrap.metrics = { -- cgit v1.2.3