MCPcopy Create free account
hub / github.com/codeaashu/claude-code / toGB

Function toGB

src/utils/heapDumpService.ts:232–233  ·  view source on GitHub ↗
(bytes: number)

Source from the content-addressed store, hash-verified

230 const diagnostics = await captureMemoryDiagnostics(trigger, dumpNumber)
231
232 const toGB = (bytes: number): string =>
233 (bytes / 1024 / 1024 / 1024).toFixed(3)
234 logForDebugging(`[HeapDump] Memory state:
235 heapUsed: ${toGB(diagnostics.memoryUsage.heapUsed)} GB (in snapshot)
236 external: ${toGB(diagnostics.memoryUsage.external)} GB (NOT in snapshot)

Callers 1

performHeapDumpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected