MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / report

Function report

apps/cloud/scripts/start-closure.mjs:92–98  ·  view source on GitHub ↗
(label, files)

Source from the content-addressed store, hash-verified

90const evaluated = new Set([...startup, ...start]);
91
92const report = (label, files) => {
93 console.log(`\n${label}: ${mb(bytes(files))} (${files.size} chunks)`);
94 const own = [...files].filter((f) => !startup.has(f) || label === "startup");
95 for (const f of own.sort((a, b) => graph.get(b).size - graph.get(a).size).slice(0, 12)) {
96 console.log(` ${(graph.get(f).size / 1024).toFixed(0).padStart(6)} KB ${name(f)}`);
97 }
98};
99
100report("startup", startup);
101report("start", start);

Callers 3

reportExitFailureFunction · 0.85
reportCauseFailureFunction · 0.85
start-closure.mjsFile · 0.85

Calls 5

mbFunction · 0.85
bytesFunction · 0.85
nameFunction · 0.85
logMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected