MCPcopy Index your code
hub / github.com/react/react / startProfilerTimer

Function startProfilerTimer

packages/react-reconciler/src/ReactProfilerTimer.js:586–596  ·  view source on GitHub ↗
(fiber: Fiber)

Source from the content-addressed store, hash-verified

584}
585
586export function startProfilerTimer(fiber: Fiber): void {
587 if (!enableProfilerTimer) {
588 return;
589 }
590
591 profilerStartTime = now();
592
593 if (((fiber.actualStartTime: any): number) < 0) {
594 fiber.actualStartTime = profilerStartTime;
595 }
596}
597
598export function stopProfilerTimerIfRunning(fiber: Fiber): void {
599 if (!enableProfilerTimer) {

Callers 3

performUnitOfWorkFunction · 0.90
replayBeginWorkFunction · 0.90
completeUnitOfWorkFunction · 0.90

Calls 1

nowFunction · 0.50

Tested by

no test coverage detected