fix(tracing): account for screencast timestamps when computing timeline boundary of empty trace (#13214)

This commit is contained in:
Pavel Feldman 2022-03-31 08:45:45 -08:00 committed by GitHub
parent 28234b6540
commit b2c863f6a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,6 +152,10 @@ export class TraceModel {
this.contextEntry!.startTime = Math.min(this.contextEntry!.startTime, event.metadata.startTime);
this.contextEntry!.endTime = Math.max(this.contextEntry!.endTime, event.metadata.endTime);
}
if (event.type === 'screencast-frame') {
this.contextEntry!.startTime = Math.min(this.contextEntry!.startTime, event.timestamp);
this.contextEntry!.endTime = Math.max(this.contextEntry!.endTime, event.timestamp);
}
}
private _modernize(event: any): trace.TraceEvent {