2022-07-05 13:41:43 +00:00
---
sidebar_label: Tracing
---
# Tracing class
The Tracing class exposes the tracing audit interface.
2022-10-24 07:07:05 +00:00
#### Signature:
2022-07-05 13:41:43 +00:00
```typescript
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 ](https://chromedevtools.github.io/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
```ts
await page.tracing.start({path: 'trace.json'});
await page.goto('https://www.google.com');
await page.tracing.stop();
```
## Methods
2024-03-20 15:03:14 +00:00
< table > < thead > < tr > < th >
Method
< / th > < th >
Modifiers
< / th > < th >
Description
< / th > < / tr > < / thead >
< tbody > < tr > < td >
2024-04-11 11:01:13 +00:00
< span id = "start" > [start(options)](./puppeteer.tracing.start.md)< / span >
2024-03-20 15:03:14 +00:00
< / td > < td >
< / td > < td >
Starts a trace for the current page.
2024-04-29 12:50:39 +00:00
**Remarks:**
Only one trace can be active at a time per browser.
2024-03-20 15:03:14 +00:00
< / td > < / tr >
< tr > < td >
2024-04-11 11:01:13 +00:00
< span id = "stop" > [stop()](./puppeteer.tracing.stop.md)< / span >
2024-03-20 15:03:14 +00:00
< / td > < td >
< / td > < td >
Stops a trace started with the `start` method.
< / td > < / tr >
< / tbody > < / table >