MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / count

Function count

src/resolution/memory-budget.ts:93–96  ·  view source on GitHub ↗
(label: string)

Source from the content-addressed store, hash-verified

91 const pageMatch = /page size of (\d+) bytes/.exec(out);
92 const pageSize = pageMatch ? Number.parseInt(pageMatch[1]!, 10) : 16384;
93 const count = (label: string): number => {
94 const m = new RegExp(`^${label}:\\s+(\\d+)`, 'm').exec(out);
95 return m ? Number.parseInt(m[1]!, 10) : 0;
96 };
97 const pages =
98 count('Pages free') +
99 count('Pages inactive') +

Callers 1

darwinMemoryAvailableFunction · 0.70

Calls 1

execMethod · 0.65

Tested by

no test coverage detected