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,
|
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);
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
}[];
|
}[];
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue