(entries: LongFrameEntry[])
| 158 | } |
| 159 | |
| 160 | function collectFrames(entries: LongFrameEntry[]) { |
| 161 | for (let entry of entries) { |
| 162 | longFrames.push({ |
| 163 | startTime: entry.startTime, |
| 164 | duration: entry.duration, |
| 165 | blockingDuration: entry.blockingDuration, |
| 166 | renderStart: entry.renderStart, |
| 167 | styleAndLayoutStart: entry.styleAndLayoutStart, |
| 168 | scripts: entry.scripts.map(script => ({ |
| 169 | invoker: script.invoker, |
| 170 | invokerType: script.invokerType, |
| 171 | sourceURL: script.sourceURL, |
| 172 | sourceFunctionName: script.sourceFunctionName, |
| 173 | duration: script.duration, |
| 174 | forcedStyleAndLayoutDuration: script.forcedStyleAndLayoutDuration |
| 175 | })) |
| 176 | }); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | function matches(conditions: Condition[]) { |
| 181 | return conditions.every(condition => { |
no test coverage detected