(value)
| 223 | } |
| 224 | |
| 225 | function rssKbForPid(value) { |
| 226 | try { |
| 227 | const output = execFileSync("ps", ["-o", "rss=", "-p", String(value)], { |
| 228 | encoding: "utf8", |
| 229 | stdio: ["ignore", "pipe", "ignore"], |
| 230 | }).trim(); |
| 231 | return optionalInt(output); |
| 232 | } catch { |
| 233 | return null; |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | function parseArgs(values) { |
| 238 | const parsed = {}; |
no test coverage detected