(fiber)
| 7014 | } |
| 7015 | |
| 7016 | function startWorkTimer(fiber) { |
| 7017 | if (enableUserTimingAPI) { |
| 7018 | if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { |
| 7019 | return; |
| 7020 | } |
| 7021 | // If we pause, this is the fiber to unwind from. |
| 7022 | currentFiber = fiber; |
| 7023 | if (!beginFiberMark(fiber, null)) { |
| 7024 | return; |
| 7025 | } |
| 7026 | fiber._debugIsCurrentlyTiming = true; |
| 7027 | } |
| 7028 | } |
| 7029 | |
| 7030 | function cancelWorkTimer(fiber) { |
| 7031 | if (enableUserTimingAPI) { |
no test coverage detected