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

Function markSchedulerSuspended

packages/scheduler/src/SchedulerProfiling.js:163–171  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

161}
162
163export function markSchedulerSuspended(ms: number) {
164 if (enableProfiling) {
165 mainThreadIdCounter++;
166
167 if (eventLog !== null) {
168 logEvent([SchedulerSuspendEvent, ms * 1000, mainThreadIdCounter]);
169 }
170 }
171}
172
173export function markSchedulerUnsuspended(ms: number) {
174 if (enableProfiling) {

Callers 2

flushWorkFunction · 0.90
flushWorkFunction · 0.90

Calls 1

logEventFunction · 0.70

Tested by

no test coverage detected