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

Function sampleRss

scripts/stress/simdeck.mjs:191–205  ·  view source on GitHub ↗
(label)

Source from the content-addressed store, hash-verified

189}
190
191function sampleRss(label) {
192 if (!pid) {
193 return;
194 }
195 const rssKb = rssKbForPid(pid);
196 if (rssKb == null) {
197 failures.push({ index: -1, error: `Unable to sample RSS for pid ${pid}` });
198 return;
199 }
200 samples.push({
201 label,
202 completed,
203 rssMb: Number((rssKb / 1024).toFixed(2)),
204 });
205}
206
207function discoverListenerPid(url) {
208 const port =

Callers 1

simdeck.mjsFile · 0.85

Calls 1

rssKbForPidFunction · 0.85

Tested by

no test coverage detected