MCPcopy
hub / github.com/codeaashu/claude-code / clearHeadlessMarks

Function clearHeadlessMarks

src/utils/headlessProfiler.ts:48–56  ·  view source on GitHub ↗

* Clear all headless profiler marks from performance timeline

()

Source from the content-addressed store, hash-verified

46 * Clear all headless profiler marks from performance timeline
47 */
48function clearHeadlessMarks(): void {
49 const perf = getPerformance()
50 const allMarks = perf.getEntriesByType('mark')
51 for (const mark of allMarks) {
52 if (mark.name.startsWith(MARK_PREFIX)) {
53 perf.clearMarks(mark.name)
54 }
55 }
56}
57
58/**
59 * Start a new turn for profiling. Clears previous marks, increments turn number,

Callers 1

Calls 1

getPerformanceFunction · 0.85

Tested by

no test coverage detected