one more rename

This commit is contained in:
Simon Knott 2024-09-09 16:53:04 +02:00
parent 59e750bc88
commit f02b89be0b
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC
4 changed files with 5 additions and 5 deletions

View file

@ -473,7 +473,7 @@ export class Tracing extends SdkObject implements InstrumentationListener, Snaps
width: params.width, width: params.width,
height: params.height, height: params.height,
timestamp: monotonicTime(), timestamp: monotonicTime(),
frameSwapTimestamp: params.timestamp, frameSwapWallTime: params.timestamp,
}; };
// Make sure to write the screencast frame before adding a reference to it. // Make sure to write the screencast frame before adding a reference to it.
this._appendResource(sha1, params.buffer); this._appendResource(sha1, params.buffer);

View file

@ -45,7 +45,7 @@ export type PageEntry = {
screencastFrames: { screencastFrames: {
sha1: string, sha1: string,
timestamp: number, timestamp: number,
frameSwapTimestamp?: number, frameSwapWallTime?: number,
width: number, width: number,
height: number, height: number,
}[]; }[];

View file

@ -170,8 +170,8 @@ export const SnapshotTab: React.FunctionComponent<{
const page = action ? pageForAction(action) : undefined; const page = action ? pageForAction(action) : undefined;
const screencastFrame = React.useMemo( const screencastFrame = React.useMemo(
() => { () => {
if (snapshotInfo.wallTime && page?.screencastFrames[0]?.frameSwapTimestamp) if (snapshotInfo.wallTime && page?.screencastFrames[0]?.frameSwapWallTime)
return findClosest(page.screencastFrames, frame => frame.frameSwapTimestamp!, snapshotInfo.wallTime); return findClosest(page.screencastFrames, frame => frame.frameSwapWallTime!, snapshotInfo.wallTime);
if (snapshotInfo.timestamp && page?.screencastFrames) if (snapshotInfo.timestamp && page?.screencastFrames)
return findClosest(page.screencastFrames, frame => frame.timestamp, snapshotInfo.timestamp); return findClosest(page.screencastFrames, frame => frame.timestamp, snapshotInfo.timestamp);

View file

@ -53,7 +53,7 @@ export type ScreencastFrameTraceEvent = {
width: number, width: number,
height: number, height: number,
timestamp: number, timestamp: number,
frameSwapTimestamp?: number, // milliseconds since epoch frameSwapWallTime?: number,
}; };
export type BeforeActionTraceEvent = { export type BeforeActionTraceEvent = {