()
| 11 | // absent (e.g. a dev machine without the `time` package) callers fall back to |
| 12 | // running unwrapped and reporting no memory, rather than failing the benchmark. |
| 13 | export function gnuTimeAvailable(): boolean { |
| 14 | if (cachedAvailable === undefined) { |
| 15 | cachedAvailable = existsSync(GNU_TIME); |
| 16 | } |
| 17 | |
| 18 | return cachedAvailable; |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Wrap a shell command so GNU time writes its peak RSS (in KB) to `memFile`. |
no outgoing calls
no test coverage detected