(bytes: number)
| 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) |