method MetricsService.prototype.snapshot
MetricsService.prototype.snapshot(): readonly MetricSnapshot[]

Takes a snapshot of all metrics for rendering.

Return Type

readonly MetricSnapshot[]

Array of metric snapshots

Usage

import { MetricsService } from "metrics-plugin/src/index.ts";