()
| 86 | } |
| 87 | |
| 88 | function checkMemory(): CheckResult { |
| 89 | const sys = getSystemMeta(); |
| 90 | const availMb = getAvailableMemoryMb(); |
| 91 | const totalGb = (sys.memory_total_mb / 1024).toFixed(1); |
| 92 | const availGb = (availMb / 1024).toFixed(1); |
| 93 | |
| 94 | if (availMb < 2048) { |
| 95 | return { |
| 96 | ok: false, |
| 97 | detail: `${totalGb} GB total \u00B7 ${availGb} GB available`, |
| 98 | hint: "Low memory — renders may fail. Close other apps or increase RAM.", |
| 99 | }; |
| 100 | } |
| 101 | return { ok: true, detail: `${totalGb} GB total \u00B7 ${availGb} GB available` }; |
| 102 | } |
| 103 | |
| 104 | function checkShm(): CheckResult { |
| 105 | const shmMb = getShmSizeMb(); |
nothing calls this directly
no test coverage detected