mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
93e9acc410
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nikolay Vitkov <nvitkov@chromium.org>
1.0 KiB
1.0 KiB
sidebar_label |
---|
Tracing |
Tracing class
The Tracing class exposes the tracing audit interface.
Signature:
export declare class Tracing
Remarks
You can use tracing.start
and tracing.stop
to create a trace file which can be opened in Chrome DevTools or timeline viewer.
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Tracing
class.
Example
await page.tracing.start({path: 'trace.json'});
await page.goto('https://www.google.com');
await page.tracing.stop();
Methods
Method |
Modifiers |
Description |
---|---|---|
Starts a trace for the current page. | ||
Stops a trace started with the |