(fiber)
| 6983 | } |
| 6984 | |
| 6985 | function startWorkTimer(fiber) { |
| 6986 | if (enableUserTimingAPI) { |
| 6987 | if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { |
| 6988 | return; |
| 6989 | } |
| 6990 | // If we pause, this is the fiber to unwind from. |
| 6991 | currentFiber = fiber; |
| 6992 | if (!beginFiberMark(fiber, null)) { |
| 6993 | return; |
| 6994 | } |
| 6995 | fiber._debugIsCurrentlyTiming = true; |
| 6996 | } |
| 6997 | } |
| 6998 | |
| 6999 | function cancelWorkTimer(fiber) { |
| 7000 | if (enableUserTimingAPI) { |
no test coverage detected