MCPcopy Create free account
hub / github.com/adobe/react-spectrum / collectFrames

Function collectFrames

perf/app/measure.ts:160–178  ·  view source on GitHub ↗
(entries: LongFrameEntry[])

Source from the content-addressed store, hash-verified

158}
159
160function 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
180function matches(conditions: Condition[]) {
181 return conditions.every(condition => {

Callers 2

measure.tsFile · 0.85
readFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected