MCPcopy Create free account
hub / github.com/modem-dev/hunk / formatBytes

Function formatBytes

benchmarks/navigation-memory.ts:162–164  ·  view source on GitHub ↗
(bytes: number)

Source from the content-addressed store, hash-verified

160}
161
162function formatBytes(bytes: number) {
163 return `${(bytes / 1024 / 1024).toFixed(1)} MiB`;
164}
165
166function linearSlope(samples: MemorySample[], field: "heapUsedBytes" | "rssBytes") {
167 if (samples.length < 2) {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected