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

Function markTaskYield

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

Source from the content-addressed store, hash-verified

153}
154
155export function markTaskYield(task: {id: number, ...}, ms: number) {
156 if (enableProfiling) {
157 if (eventLog !== null) {
158 logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]);
159 }
160 }
161}
162
163export function markSchedulerSuspended(ms: number) {
164 if (enableProfiling) {

Callers 2

workLoopFunction · 0.90
workLoopFunction · 0.90

Calls 1

logEventFunction · 0.70

Tested by

no test coverage detected