make it optional

This commit is contained in:
Simon Knott 2024-09-10 13:58:12 +02:00
parent 48d7c70a2f
commit 551ccfd3b4
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC
2 changed files with 1 additions and 5 deletions

View file

@ -395,10 +395,6 @@ export class TraceModernizer {
result.push({ ...event, monotonicTime: 0, origin: 'library' });
continue;
}
if (event.type === 'frame-snapshot') {
result.push({ ...event, snapshot: { ...event.snapshot, wallTime: 0 } });
continue;
}
// Take wall and monotonic time from the first event.
if (!this._contextEntry.wallTime && event.type === 'before')
this._contextEntry.wallTime = event.wallTime;

View file

@ -44,7 +44,7 @@ export type FrameSnapshot = {
frameId: string,
frameUrl: string,
timestamp: number,
wallTime: number,
wallTime?: number,
collectionTime: number,
doctype?: string,
html: NodeSnapshot,