@push.rocks/smartbrowser 4.0.2 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -81,3 +81,24 @@ export interface ILiveBrowserCanvasRendererOptions {
81
81
  onError?: (errorArg: ILiveBrowserCanvasError) => void;
82
82
  onFrameRendered?: (frameArg: ILiveBrowserFrame) => void;
83
83
  }
84
+
85
+ /**
86
+ * Cumulative renderer counters. Counts accumulate across runs of one instance;
87
+ * inputCommandsInFlight is the live value at the time of the call.
88
+ */
89
+ export interface ILiveBrowserCanvasRendererStatistics {
90
+ /** Frame events delivered to an active run, including ones rejected by validation. */
91
+ framesReceived: number;
92
+ /** Frames whose bitmap decoded with matching dimensions. */
93
+ framesDecoded: number;
94
+ /** Frames retired without being drawn: superseded, stale, or replaced before presentation. */
95
+ framesSkipped: number;
96
+ /** Input submissions accepted by the renderer, including ones later merged. */
97
+ inputCommandsEnqueued: number;
98
+ /** Submissions merged into another command or dropped under queue pressure. */
99
+ inputCommandsCoalesced: number;
100
+ /** Client input operations currently awaiting a result. */
101
+ inputCommandsInFlight: number;
102
+ /** Duration of the most recently completed input dispatch in milliseconds; 0 before the first. */
103
+ lastInputRoundTripMs: number;
104
+ }