diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-03-20 12:39:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-20 12:39:47 -0400 |
commit | 9444bd71a0b9165ef1a900f19b08a88592d2bb5c (patch) | |
tree | d48f8bf5a8d21b3646adddc20fa279532b359efd /js | |
parent | 842627d6b905f71aea821c426a886022b07270a5 (diff) |
Website and manual improvements (#1967)
Diffstat (limited to 'js')
-rw-r--r-- | js/metrics.ts | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/js/metrics.ts b/js/metrics.ts index 111015078..c4ba14c7d 100644 --- a/js/metrics.ts +++ b/js/metrics.ts @@ -34,7 +34,19 @@ function res(baseRes: null | msg.Base): Metrics { }; } -/** Receive metrics from the privileged side of Deno. */ +/** Receive metrics from the privileged side of Deno. + * + * > console.table(Deno.metrics()) + * ┌──────────────────┬────────┐ + * │ (index) │ Values │ + * ├──────────────────┼────────┤ + * │ opsDispatched │ 9 │ + * │ opsCompleted │ 9 │ + * │ bytesSentControl │ 504 │ + * │ bytesSentData │ 0 │ + * │ bytesReceived │ 856 │ + * └──────────────────┴────────┘ + */ export function metrics(): Metrics { return res(dispatch.sendSync(...req())); } |