(entries)
| 2370 | var SchedulerResumeEvent = 8; |
| 2371 | |
| 2372 | function logEvent(entries) { |
| 2373 | if (eventLog !== null) { |
| 2374 | var offset = eventLogIndex; |
| 2375 | eventLogIndex += entries.length; |
| 2376 | |
| 2377 | if (eventLogIndex + 1 > eventLogSize) { |
| 2378 | eventLogSize *= 2; |
| 2379 | |
| 2380 | if (eventLogSize > MAX_EVENT_LOG_SIZE) { |
| 2381 | // Using console['error'] to evade Babel and ESLint |
| 2382 | console['error']("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.'); |
| 2383 | stopLoggingProfilingEvents(); |
| 2384 | return; |
| 2385 | } |
| 2386 | |
| 2387 | var newEventLog = new Int32Array(eventLogSize * 4); |
| 2388 | newEventLog.set(eventLog); |
| 2389 | eventLogBuffer = newEventLog.buffer; |
| 2390 | eventLog = newEventLog; |
| 2391 | } |
| 2392 | |
| 2393 | eventLog.set(entries, offset); |
| 2394 | } |
| 2395 | } |
| 2396 | |
| 2397 | function startLoggingProfilingEvents() { |
| 2398 | eventLogSize = INITIAL_EVENT_LOG_SIZE; |
no test coverage detected
searching dependent graphs…