()
| 136 | const na = () => language.t("debugBar.na").toUpperCase() |
| 137 | const heap = () => (state.heap.limit ? (state.heap.used ?? 0) / state.heap.limit : undefined) |
| 138 | const heapv = () => { |
| 139 | const value = heap() |
| 140 | if (value === undefined) return na() |
| 141 | return `${Math.round(value * 100)}%` |
| 142 | } |
| 143 | const longv = () => (state.long.count === undefined ? na() : `${time(state.long.block) ?? na()}/${state.long.count}`) |
| 144 | const navv = () => (state.nav.pending ? "..." : (time(state.nav.dur) ?? na())) |
| 145 |