diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-10-10 17:20:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-10 17:20:30 +0200 |
commit | 5a8a989b7815023f33a1e3183a55cc8999af5d98 (patch) | |
tree | d15619ed83a2965f17dc10a78c9072f34d393009 /runtime/js/30_metrics.js | |
parent | f2ac7ff23a2ae4925f4ca32ffd61c923c481ef4e (diff) |
refactor(metrics): move to core (#12386)
Avoids overhead of wrapping ops (and allocs when inspecting async-op futures)
Diffstat (limited to 'runtime/js/30_metrics.js')
-rw-r--r-- | runtime/js/30_metrics.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/runtime/js/30_metrics.js b/runtime/js/30_metrics.js deleted file mode 100644 index ecc1cfc64..000000000 --- a/runtime/js/30_metrics.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. -"use strict"; - -((window) => { - const core = window.Deno.core; - - function metrics() { - const { combined, ops } = core.opSync("op_metrics"); - if (ops) { - combined.ops = ops; - } - return combined; - } - - window.__bootstrap.metrics = { - metrics, - }; -})(this); |