MCPcopy Create free account
hub / github.com/reactjs/react-rails / logEvent

Function logEvent

lib/assets/react-source/development/react.js:3170–3193  ·  view source on GitHub ↗
(entries)

Source from the content-addressed store, hash-verified

3168 var SchedulerResumeEvent = 8;
3169
3170 function logEvent(entries) {
3171 if (eventLog !== null) {
3172 var offset = eventLogIndex;
3173 eventLogIndex += entries.length;
3174
3175 if (eventLogIndex + 1 > eventLogSize) {
3176 eventLogSize *= 2;
3177
3178 if (eventLogSize > MAX_EVENT_LOG_SIZE) {
3179 // Using console['error'] to evade Babel and ESLint
3180 console['error']("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.');
3181 stopLoggingProfilingEvents();
3182 return;
3183 }
3184
3185 var newEventLog = new Int32Array(eventLogSize * 4);
3186 newEventLog.set(eventLog);
3187 eventLogBuffer = newEventLog.buffer;
3188 eventLog = newEventLog;
3189 }
3190
3191 eventLog.set(entries, offset);
3192 }
3193 }
3194
3195 function startLoggingProfilingEvents() {
3196 eventLogSize = INITIAL_EVENT_LOG_SIZE;

Callers 8

markTaskStartFunction · 0.85
markTaskCompletedFunction · 0.85
markTaskCanceledFunction · 0.85
markTaskErroredFunction · 0.85
markTaskRunFunction · 0.85
markTaskYieldFunction · 0.85
markSchedulerSuspendedFunction · 0.85
markSchedulerUnsuspendedFunction · 0.85

Calls 1

Tested by

no test coverage detected