(bytes: number)
| 104 | |
| 105 | /** Format memory delta as human-readable string with sign */ |
| 106 | export function formatMemoryDelta(bytes: number): string { |
| 107 | const sign = bytes >= 0 ? '+' : '' |
| 108 | const mb = bytes / (1024 * 1024) |
| 109 | if (Math.abs(mb) >= 1024) { |
| 110 | return `${sign}${(mb / 1024).toFixed(1)}GB` |
| 111 | } |
| 112 | return `${sign}${mb.toFixed(0)}MB` |
| 113 | } |
| 114 | |
| 115 | /** Display profile summary table */ |
| 116 | export function displayProfileSummary(profiles: BlockProfile[]): void { |
no outgoing calls
no test coverage detected