MCPcopy
hub / github.com/claude-code-best/claude-code / mark

Function mark

src/utils/performanceShim.ts:32–42  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

30}
31
32function mark(name: string): PerformanceMark {
33 marks.set(name, now())
34 // Return a minimal PerformanceMark-like object to satisfy the interface.
35 // React/OTel only use mark() for side effects, not the return value.
36 return {
37 name,
38 entryType: 'mark',
39 startTime: marks.get(name)!,
40 duration: 0,
41 } as PerformanceMark
42}
43
44function measure(
45 name: string,

Callers

nothing calls this directly

Calls 3

setMethod · 0.80
nowFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected