MCPcopy
hub / github.com/facebook/react / markTaskRun

Function markTaskRun

packages/scheduler/src/SchedulerProfiling.js:138–153  ·  view source on GitHub ↗
(
  task: {
    id: number,
    priorityLevel: PriorityLevel,
    ...
  },
  ms: number,
)

Source from the content-addressed store, hash-verified

136}
137
138export function markTaskRun(
139 task: {
140 id: number,
141 priorityLevel: PriorityLevel,
142 ...
143 },
144 ms: number,
145) {
146 if (enableProfiling) {
147 runIdCounter++;
148
149 if (eventLog !== null) {
150 logEvent([TaskRunEvent, ms * 1000, task.id, runIdCounter]);
151 }
152 }
153}
154
155export function markTaskYield(task: {id: number, ...}, ms: number) {
156 if (enableProfiling) {

Callers 2

workLoopFunction · 0.90
workLoopFunction · 0.90

Calls 1

logEventFunction · 0.70

Tested by

no test coverage detected