mirror of
https://github.com/denoland/deno.git
synced 2025-08-22 11:34:49 +00:00
Website and manual improvements (#1967)
This commit is contained in:
parent
842627d6b9
commit
9444bd71a0
3 changed files with 30 additions and 13 deletions
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue