MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / getDaemonActivitySnapshot

Function getDaemonActivitySnapshot

src/daemon/activity-registry.ts:43–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43export function getDaemonActivitySnapshot(): DaemonActivitySnapshot {
44 const byCategory = Object.fromEntries(
45 Array.from(activityCounts.entries()).sort(([left], [right]) => left.localeCompare(right)),
46 );
47 const activeOperationCount = Array.from(activityCounts.values()).reduce(
48 (accumulator, count) => accumulator + count,
49 0,
50 );
51 return {
52 activeOperationCount,
53 byCategory,
54 };
55}
56
57/**
58 * Test helper to reset shared process-local activity state.

Callers 7

emitRequestGaugesFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected