MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getProcessIdForAgent

Function getProcessIdForAgent

src/utils/telemetry/perfettoTracing.ts:135–142  ·  view source on GitHub ↗

* Get or create a numeric process ID for an agent

(agentId: string)

Source from the content-addressed store, hash-verified

133 * Get or create a numeric process ID for an agent
134 */
135function getProcessIdForAgent(agentId: string): number {
136 const existing = agentIdToProcessId.get(agentId)
137 if (existing !== undefined) return existing
138
139 processIdCounter++
140 agentIdToProcessId.set(agentId, processIdCounter)
141 return processIdCounter
142}
143
144/**
145 * Get current agent info

Callers 2

getCurrentAgentInfoFunction · 0.85
registerAgentFunction · 0.85

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected