MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / formatBytes

Function formatBytes

scripts/profile/utils.ts:13–15  ·  view source on GitHub ↗
(bytes: number)

Source from the content-addressed store, hash-verified

11}
12
13export function formatBytes(bytes: number): string {
14 return `${(bytes / 1024 / 1024).toFixed(2)} MiB`;
15}
16
17export function parseNonNegativeInteger(
18 value: string | undefined,

Callers 2

recordFunction · 0.90
profileScenarioFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected