MCPcopy Create free account
hub / github.com/cloudflare/computer / stubSnapshot

Function stubSnapshot

packages/rpc/src/debug.ts:56–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54// disabled or when nothing is live. Callers should not mutate the
55// returned object — it's a fresh copy on every call.
56export function stubSnapshot(): Record<string, number> {
57 const out: Record<string, number> = {};
58 for (const [name, count] of counters) out[name] = count;
59 return out;
60}
61
62// True iff tracking is on (env flag, globalThis override, or
63// enableStubTracking() was called). Useful for skipping diagnostic

Callers 3

createHTTPServerFunction · 0.90
snapshotOfFunction · 0.90
stubSnapshotMethod · 0.90

Calls

no outgoing calls

Tested by 1

snapshotOfFunction · 0.72