feat(client): Allow tracing without FS
This commit is contained in:
parent
c49ddaa6ff
commit
52f161fd6a
|
|
@ -89,11 +89,13 @@ export class Tracing
|
||||||
|
|
||||||
async stopChunk() {
|
async stopChunk() {
|
||||||
this._traceBuffer = await this._collectTraceAsBuffer();
|
this._traceBuffer = await this._collectTraceAsBuffer();
|
||||||
|
return this._traceBuffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
async stop() {
|
async stop() {
|
||||||
this._traceBuffer = await this._collectTraceAsBuffer();
|
this._traceBuffer = await this._collectTraceAsBuffer();
|
||||||
await this._channel.tracingStop();
|
await this._channel.tracingStop();
|
||||||
|
return this._traceBuffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _collectTraceAsBuffer(): Promise<Buffer> {
|
private async _collectTraceAsBuffer(): Promise<Buffer> {
|
||||||
|
|
|
||||||
3760
packages/playwright-core/types/types.d.ts
vendored
3760
packages/playwright-core/types/types.d.ts
vendored
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue