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

x/xdg/vendor/types/deno.d.ts>Deno.metrics

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
function Deno.metrics
import { Deno } from "https://deno.land/x/xdg@v10.5.1/vendor/types/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   β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”˜