TLCameraEndPerfEvent

See source code
Table of contents

Extends TLPerfFrameTimeStats.

Emitted when a camera operation ends (after a 50ms debounce), with aggregated frame time stats.

interface TLCameraEndPerfEvent extends TLPerfFrameTimeStats {}

Properties

avgFrameTime

Mean frame duration in ms.

avgFrameTime: number;

culledShapeCount

Number of shapes culled (off-screen) from rendering.

culledShapeCount: number;

duration

Total duration of the session in ms.

duration: number;

fps

Average frames per second during the session.

fps: number;

frameCount

Total number of frames recorded.

frameCount: number;

frameTimes

Raw frame durations for local analysis. Exclude when sending to analytics.

frameTimes: number[];

longAnimationFrames

optional

Long animation frames observed during this period (Chromium 123+). Only present when the browser supports the Long Animation Frames API and at least one long frame was observed. Exclude when sending to analytics — entries are large and contain script URLs.

longAnimationFrames?: TLPerfLongAnimationFrame[];

maxFrameTime

Longest frame duration in ms.

maxFrameTime: number;

medianFrameTime

Median (p50) frame duration in ms.

medianFrameTime: number;

minFrameTime

Shortest frame duration in ms.

minFrameTime: number;

p95FrameTime

95th percentile frame duration in ms.

p95FrameTime: number;

p99FrameTime

99th percentile frame duration in ms.

p99FrameTime: number;

shapeCount

Total shapes on the current page.

shapeCount: number;

timestamp

performance.now() when the camera session ended.

timestamp: number;

type

Whether this was a pan or zoom operation.

type: "panning" | "zooming";

viewportHeight

Viewport height in screen pixels.

viewportHeight: number;

viewportWidth

Viewport width in screen pixels.

viewportWidth: number;

visibleShapeCount

Number of shapes visible (not culled) in the viewport.

visibleShapeCount: number;

zoomLevel

Camera zoom level (camera.z) at session end.

zoomLevel: number;

Prev
TLCameraConstraints
Next
TLCameraMoveOptions