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

Function markTaskStart

lib/assets/react-source/development/react.js:3209–3220  ·  view source on GitHub ↗
(task, ms)

Source from the content-addressed store, hash-verified

3207 return buffer;
3208 }
3209 function markTaskStart(task, ms) {
3210 {
3211 profilingState[QUEUE_SIZE]++;
3212
3213 if (eventLog !== null) {
3214 // performance.now returns a float, representing milliseconds. When the
3215 // event is logged, it's coerced to an int. Convert to microseconds to
3216 // maintain extra degrees of precision.
3217 logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]);
3218 }
3219 }
3220 }
3221 function markTaskCompleted(task, ms) {
3222 {
3223 profilingState[PRIORITY] = NoPriority;

Callers 2

advanceTimersFunction · 0.85

Calls 1

logEventFunction · 0.85

Tested by

no test coverage detected