MCPcopy Create free account
hub / github.com/codeaashu/claude-code / callerFrame

Function callerFrame

src/utils/slowOperations.ts:59–67  ·  view source on GitHub ↗
(stack: string | undefined)

Source from the content-addressed store, hash-verified

57 * Only called when an operation was actually slow — never on the fast path.
58 */
59export function callerFrame(stack: string | undefined): string {
60 if (!stack) return ''
61 for (const line of stack.split('\n')) {
62 if (line.includes('slowOperations')) continue
63 const m = line.match(/([^/\\]+?):(\d+):\d+\)?$/)
64 if (m) return ` @ ${m[1]}:${m[2]}`
65 }
66 return ''
67}
68
69/**
70 * Builds a human-readable description from tagged template arguments.

Callers 1

[Symbol.dispose]Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected