import { Tracing } from "https://deno.land/x/pptr@1.2.0/mod.ts";
The Tracing class exposes the tracing audit interface.
Examples
Example 1
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<Uint8Array>
Stops a trace started with the start
method.