(dst, hist)
| 128 | } |
| 129 | |
| 130 | function addOpcodeHistogram(dst, hist) { |
| 131 | if (typeof hist !== "object" || hist === null) return; |
| 132 | for (const [k, v] of Object.entries(hist)) { |
| 133 | const count = Number(v); |
| 134 | if (!Number.isFinite(count) || count <= 0) continue; |
| 135 | dst.set(k, (dst.get(k) ?? 0) + count); |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | function createRouteSummary() { |
| 140 | return { |
no test coverage detected