(frame: FrameSnapshot)
| 142 | } |
| 143 | |
| 144 | function toBundleFrameSummary(frame: FrameSnapshot): DebugBundleFrameSummary { |
| 145 | return { |
| 146 | frameId: frame.frameId.toString(), |
| 147 | timestamp: frame.timestamp, |
| 148 | cols: frame.cols, |
| 149 | rows: frame.rows, |
| 150 | drawlistBytes: frame.drawlistBytes, |
| 151 | drawlistCmds: frame.drawlistCmds, |
| 152 | diffBytesEmitted: frame.diffBytesEmitted, |
| 153 | dirtyLines: frame.dirtyLines, |
| 154 | dirtyCells: frame.dirtyCells, |
| 155 | damageRects: frame.damageRects, |
| 156 | usDrawlist: frame.usDrawlist, |
| 157 | usDiff: frame.usDiff, |
| 158 | usWrite: frame.usWrite, |
| 159 | }; |
| 160 | } |
| 161 | |
| 162 | function stableJson(value: unknown): string { |
| 163 | if (value === null || typeof value !== "object") { |
nothing calls this directly
no outgoing calls
no test coverage detected