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' });
|
result.push({ ...event, monotonicTime: 0, origin: 'library' });
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (event.type === 'frame-snapshot') {
|
|
||||||
result.push({ ...event, snapshot: { ...event.snapshot, wallTime: 0 } });
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
// Take wall and monotonic time from the first event.
|
// Take wall and monotonic time from the first event.
|
||||||
if (!this._contextEntry.wallTime && event.type === 'before')
|
if (!this._contextEntry.wallTime && event.type === 'before')
|
||||||
this._contextEntry.wallTime = event.wallTime;
|
this._contextEntry.wallTime = event.wallTime;
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ export type FrameSnapshot = {
|
||||||
frameId: string,
|
frameId: string,
|
||||||
frameUrl: string,
|
frameUrl: string,
|
||||||
timestamp: number,
|
timestamp: number,
|
||||||
wallTime: number,
|
wallTime?: number,
|
||||||
collectionTime: number,
|
collectionTime: number,
|
||||||
doctype?: string,
|
doctype?: string,
|
||||||
html: NodeSnapshot,
|
html: NodeSnapshot,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue