MCPcopy Index your code
hub / github.com/CapSoftware/Cap / renderTopProcesses

Function renderTopProcesses

apps/desktop/scripts/desktop-memory-soak.js:239–244  ·  view source on GitHub ↗
(sample)

Source from the content-addressed store, hash-verified

237}
238
239function renderTopProcesses(sample) {
240 return sample.processRows
241 .slice(0, 5)
242 .map((row) => `${row.label}:${row.pid}:${formatMb(row.rssKb)}`)
243 .join(" ");
244}
245
246async function collectPhase(name, seconds, intervalSeconds, tracked, options) {
247 const samples = [];

Callers 1

collectPhaseFunction · 0.85

Calls 1

formatMbFunction · 0.90

Tested by

no test coverage detected