playwright/src/protocol
Dmitry Gozman 3e05d8e9fa
feat(tracing): introduce _reset() and _export() (#7974)
`tracing._export({ path })` exports current tracing state into a file
and does not require tracing to be stopped.

`tracing._reset()` resets current tracing state, but keeps resources
around so they can be referenced in the future snapshots. Does not stop.

The usage pattern is:
```js
await tracing.start({ screenshots: true, snapshots: true });
// ...
await tracing._reset();
// Do stuff, it will all be in the export below.
await tracing._export({ path });
// ...
await tracing.stop();
```
2021-08-03 16:08:06 -07:00
..
callMetadata.ts feat(trace-viewer): add nicer params rendering (#7448) 2021-07-02 16:45:09 -07:00
channels.ts feat(tracing): introduce _reset() and _export() (#7974) 2021-08-03 16:08:06 -07:00
protocol.yml feat(tracing): introduce _reset() and _export() (#7974) 2021-08-03 16:08:06 -07:00
serializers.ts fix: Jest isError handling to work with TypeError (#7251) 2021-06-21 21:48:24 +02:00
transport.ts fix(driver): stop sending protocol messages after disconnect (#4688) 2020-12-16 14:21:59 -08:00
validator.ts feat(tracing): introduce _reset() and _export() (#7974) 2021-08-03 16:08:06 -07:00
validatorPrimitives.ts chore: revert isDevMode into isUnderTest (#3785) 2020-09-06 21:36:22 -07:00