Website and manual improvements (#1967)

This commit is contained in:
Ryan Dahl 2019-03-20 12:39:47 -04:00 committed by GitHub
parent 842627d6b9
commit 9444bd71a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 13 deletions

View file

@ -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()));
}