MCPcopy Index your code
hub / github.com/plotly/dash / logEvent

Function logEvent

dash/deps/react@16.14.0.js:2372–2395  ·  view source on GitHub ↗
(entries)

Source from the content-addressed store, hash-verified

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;

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 2

setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…