MCPcopy Index your code
hub / github.com/caseywebdev/react-list / stopProfilerTimerIfRunningAndRecordDuration

Function stopProfilerTimerIfRunningAndRecordDuration

docs/index.js:22655–22662  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

22653 0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime);
22654 }
22655 function stopProfilerTimerIfRunningAndRecordDuration(fiber) {
22656 if (0 <= profilerStartTime) {
22657 var elapsedTime = now() - profilerStartTime;
22658 fiber.actualDuration += elapsedTime;
22659 fiber.selfBaseDuration = elapsedTime;
22660 profilerStartTime = -1;
22661 }
22662 }
22663 function stopProfilerTimerIfRunningAndRecordIncompleteDuration(fiber) {
22664 if (0 <= profilerStartTime) {
22665 var elapsedTime = now() - profilerStartTime;

Callers 3

handleThrowFunction · 0.85
performUnitOfWorkFunction · 0.85
replayBeginWorkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…