make it optional
This commit is contained in:
parent
48d7c70a2f
commit
551ccfd3b4
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ export type FrameSnapshot = {
|
|||
frameId: string,
|
||||
frameUrl: string,
|
||||
timestamp: number,
|
||||
wallTime: number,
|
||||
wallTime?: number,
|
||||
collectionTime: number,
|
||||
doctype?: string,
|
||||
html: NodeSnapshot,
|
||||
|
|
|
|||
Loading…
Reference in a new issue