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

Function markTaskStart

dash/deps/react@16.14.0.js:2411–2422  ·  view source on GitHub ↗
(task, ms)

Source from the content-addressed store, hash-verified

2409 return buffer;
2410 }
2411 function markTaskStart(task, ms) {
2412 {
2413 profilingState[QUEUE_SIZE]++;
2414
2415 if (eventLog !== null) {
2416 // performance.now returns a float, representing milliseconds. When the
2417 // event is logged, it's coerced to an int. Convert to microseconds to
2418 // maintain extra degrees of precision.
2419 logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]);
2420 }
2421 }
2422 }
2423 function markTaskCompleted(task, ms) {
2424 {
2425 profilingState[PRIORITY] = NoPriority;

Callers 2

advanceTimersFunction · 0.85

Calls 1

logEventFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…