Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.ns.d.ts>Deno.metrics

A modern runtime for JavaScript and TypeScript.
Go to Latest
function Deno.metrics
import { Deno } from "https://deno.land/x/deno@v1.36.0/cli/tsc/dts/lib.deno.ns.d.ts";
const { metrics } = Deno;

Receive metrics from the privileged side of Deno. This is primarily used in the development of Deno. Ops, also called bindings, are the go-between between Deno JavaScript sandbox and the rest of Deno.

> console.table(Deno.metrics())
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚         (index)         β”‚ Values β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚      opsDispatched      β”‚   3    β”‚
β”‚    opsDispatchedSync    β”‚   2    β”‚
β”‚   opsDispatchedAsync    β”‚   1    β”‚
β”‚ opsDispatchedAsyncUnref β”‚   0    β”‚
β”‚      opsCompleted       β”‚   3    β”‚
β”‚    opsCompletedSync     β”‚   2    β”‚
β”‚    opsCompletedAsync    β”‚   1    β”‚
β”‚ opsCompletedAsyncUnref  β”‚   0    β”‚
β”‚    bytesSentControl     β”‚   73   β”‚
β”‚      bytesSentData      β”‚   0    β”‚
β”‚      bytesReceived      β”‚  375   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”˜