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

Function collect

perf/app/measure.ts:134–147  ·  view source on GitHub ↗
(entries: EventEntry[])

Source from the content-addressed store, hash-verified

132}
133
134function 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.

Callers 2

measure.tsFile · 0.70
readFunction · 0.70

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected