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

x/adka/deno.d.ts>Deno.metrics

SSG & SSR: Static site generator and server side rendering using JSX.
Latest
function Deno.metrics
import { Deno } from "https://deno.land/x/adka@0.1.5/deno.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 and Deno Rust.

 > 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   β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”˜