Skip to content

Commit

Permalink
Have only one stop method
Browse files Browse the repository at this point in the history
  • Loading branch information
KS authored and KS committed Sep 12, 2023
1 parent 31ac351 commit f1976f6
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/core/engine/command/chromeTrace.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,6 @@ export class chromeTrace {
}

async stop() {
if (this.options.browser === 'chrome') {
if (this.options.chrome.timelineRecordingType === 'custom') {
return this.engineDelegate.getCDPClient().stopTrace();
} else {
log.info(
'You need to set traceRecordingType to custom to turn on the profiler in scripting'
);
}
} else {
throw new Error('Trace only works in Chrome');
}
}

async stopAndCollect() {
if (this.options.browser === 'chrome') {
if (this.options.chrome.timelineRecordingType === 'custom') {
let result = this.result[0];
Expand Down

0 comments on commit f1976f6

Please sign in to comment.