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

x/pptr/src/Tracing.ts>Tracing

Headless Chrome Deno API
Latest
class Tracing
import { Tracing } from "https://deno.land/x/pptr@1.2.0/src/Tracing.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)

Properties

_client: CDPSession
_path: string
_recording: boolean

Methods

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

Starts a trace for the current page.

stop(): Promise<Uint8Array>

Stops a trace started with the start method.