one more rename
This commit is contained in:
parent
59e750bc88
commit
f02b89be0b
|
|
@ -473,7 +473,7 @@ export class Tracing extends SdkObject implements InstrumentationListener, Snaps
|
|||
width: params.width,
|
||||
height: params.height,
|
||||
timestamp: monotonicTime(),
|
||||
frameSwapTimestamp: params.timestamp,
|
||||
frameSwapWallTime: params.timestamp,
|
||||
};
|
||||
// Make sure to write the screencast frame before adding a reference to it.
|
||||
this._appendResource(sha1, params.buffer);
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ export type PageEntry = {
|
|||
screencastFrames: {
|
||||
sha1: string,
|
||||
timestamp: number,
|
||||
frameSwapTimestamp?: number,
|
||||
frameSwapWallTime?: number,
|
||||
width: number,
|
||||
height: number,
|
||||
}[];
|
||||
|
|
|
|||
|
|
@ -170,8 +170,8 @@ export const SnapshotTab: React.FunctionComponent<{
|
|||
const page = action ? pageForAction(action) : undefined;
|
||||
const screencastFrame = React.useMemo(
|
||||
() => {
|
||||
if (snapshotInfo.wallTime && page?.screencastFrames[0]?.frameSwapTimestamp)
|
||||
return findClosest(page.screencastFrames, frame => frame.frameSwapTimestamp!, snapshotInfo.wallTime);
|
||||
if (snapshotInfo.wallTime && page?.screencastFrames[0]?.frameSwapWallTime)
|
||||
return findClosest(page.screencastFrames, frame => frame.frameSwapWallTime!, snapshotInfo.wallTime);
|
||||
|
||||
if (snapshotInfo.timestamp && page?.screencastFrames)
|
||||
return findClosest(page.screencastFrames, frame => frame.timestamp, snapshotInfo.timestamp);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ export type ScreencastFrameTraceEvent = {
|
|||
width: number,
|
||||
height: number,
|
||||
timestamp: number,
|
||||
frameSwapTimestamp?: number, // milliseconds since epoch
|
||||
frameSwapWallTime?: number,
|
||||
};
|
||||
|
||||
export type BeforeActionTraceEvent = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue