Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/frugal/dep/puppeteer/mod.ts>Tracing

A frugal web framework
Latest
class Tracing
Re-export
import { Tracing } from "https://deno.land/x/frugal@0.9.6/dep/puppeteer/mod.ts";

The Tracing class exposes the tracing audit interface.

Examples

Example 1

await page.tracing.start({path: 'trace.json'});
await page.goto('https://www.google.com');
await page.tracing.stop();

Constructors

new
Tracing(client: CDPSession)

Methods

start(options?: TracingOptions): Promise<void>

Starts a trace for the current page.

stop(): Promise<Buffer | undefined>

Stops a trace started with the start method.