(header: DebugRecordHeader)
| 109 | } |
| 110 | |
| 111 | function toBundleHeader(header: DebugRecordHeader): DebugBundleHeader { |
| 112 | return { |
| 113 | recordId: header.recordId.toString(), |
| 114 | timestampUs: header.timestampUs.toString(), |
| 115 | frameId: header.frameId.toString(), |
| 116 | category: header.category, |
| 117 | severity: header.severity, |
| 118 | code: header.code, |
| 119 | payloadSize: header.payloadSize, |
| 120 | }; |
| 121 | } |
| 122 | |
| 123 | function toBundleStats(stats: DebugStats): DebugBundleStatsSnapshot { |
| 124 | return { |