MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / addOpcodeHistogram

Function addOpcodeHistogram

scripts/frame-audit-report.mjs:130–137  ·  view source on GitHub ↗
(dst, hist)

Source from the content-addressed store, hash-verified

128}
129
130function 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
139function createRouteSummary() {
140 return {

Callers 1

Calls 3

entriesMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected