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