mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 02:22:40 +00:00
feat(unstable): per op metrics (#9240)
This commit is contained in:
parent
af93256d05
commit
9d70ea2e9f
12 changed files with 126 additions and 56 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue