MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / rssKbForPid

Function rssKbForPid

scripts/stress/simdeck.mjs:225–235  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

223}
224
225function 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
237function parseArgs(values) {
238 const parsed = {};

Callers 1

sampleRssFunction · 0.85

Calls 1

optionalIntFunction · 0.70

Tested by

no test coverage detected