Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh/tests/deps.ts>Page#metrics

The next-gen web framework.
Extremely Popular
Go to Latest
method Page.prototype.metrics
Re-export
import { Page } from "https://deno.land/x/fresh@1.4.3/tests/deps.ts";

Returns

Promise<Metrics>

Object containing metrics as key/value pairs.

  • Timestamp : The timestamp when the metrics sample was taken.

  • Documents : Number of documents in the page.

  • Frames : Number of frames in the page.

  • JSEventListeners : Number of events in the page.

  • Nodes : Number of DOM nodes in the page.

  • LayoutCount : Total number of full or partial page layout.

  • RecalcStyleCount : Total number of page style recalculations.

  • LayoutDuration : Combined durations of all page layouts.

  • RecalcStyleDuration : Combined duration of all page style recalculations.

  • ScriptDuration : Combined duration of JavaScript execution.

  • TaskDuration : Combined duration of all tasks performed by the browser.

  • JSHeapUsedSize : Used JavaScript heap size.

  • JSHeapTotalSize : Total JavaScript heap size.