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

Function untrackStub

packages/rpc/src/debug.ts:45–51  ·  view source on GitHub ↗
(target: object)

Source from the content-addressed store, hash-verified

43}
44
45export function untrackStub(target: object): void {
46 if (!trackingEnabled) return;
47 const name = target.constructor?.name ?? "anonymous";
48 const current = counters.get(name) ?? 0;
49 if (current <= 1) counters.delete(name);
50 else counters.set(name, current - 1);
51}
52
53// Snapshot the current live counts. Empty object when tracking is
54// disabled or when nothing is live. Callers should not mutate the

Callers 10

[Symbol.dispose]Method · 0.90
[Symbol.dispose]Method · 0.90
[Symbol.dispose]Method · 0.90
[Symbol.dispose]Method · 0.90
[Symbol.dispose]Method · 0.90
[Symbol.dispose]Method · 0.90
[Symbol.dispose]Method · 0.90
[Symbol.dispose]Method · 0.85
[Symbol.dispose]Method · 0.85
[Symbol.dispose]Method · 0.85

Calls 3

getMethod · 0.65
deleteMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected