* Clear all headless profiler marks from performance timeline
()
| 46 | * Clear all headless profiler marks from performance timeline |
| 47 | */ |
| 48 | function 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, |
no test coverage detected