(entries: EventEntry[])
| 132 | } |
| 133 | |
| 134 | function collect(entries: EventEntry[]) { |
| 135 | for (let entry of entries) { |
| 136 | if (entry.interactionId > 0) { |
| 137 | events.push({ |
| 138 | name: entry.name, |
| 139 | startTime: entry.startTime, |
| 140 | duration: entry.duration, |
| 141 | interactionId: entry.interactionId, |
| 142 | inputDelay: entry.processingStart - entry.startTime, |
| 143 | processing: entry.processingEnd - entry.processingStart |
| 144 | }); |
| 145 | } |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | // Long Animation Frames attribute slow frames to script, style/layout, and rendering. |
| 150 | // The browser reports only frames of at least 50 ms, and scripts of at least 5 ms. |
no test coverage detected