diff options
Diffstat (limited to 'js/metrics.ts')
-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())); } |