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

x/deno/cli/js/metrics.ts>metrics

A modern runtime for JavaScript and TypeScript.
Go to Latest
function metrics
import { metrics } from "https://deno.land/x/deno@v0.28.0/cli/js/metrics.ts";

Receive metrics from the privileged side of Deno.

 > console.table(Deno.metrics())
 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚     (index)      β”‚ Values β”‚
 β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€
 β”‚  opsDispatched   β”‚   9    β”‚
 β”‚   opsCompleted   β”‚   9    β”‚
 β”‚ bytesSentControl β”‚  504   β”‚
 β”‚  bytesSentData   β”‚   0    β”‚
 β”‚  bytesReceived   β”‚  856   β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”˜