(reason: SuspendedReason)
| 111 | export let yieldStartTime: number = -1.1; // The time when we yielded to the event loop |
| 112 | |
| 113 | export function startYieldTimer(reason: SuspendedReason) { |
| 114 | if (!enableProfilerTimer || !enableComponentPerformanceTrack) { |
| 115 | return; |
| 116 | } |
| 117 | yieldStartTime = now(); |
| 118 | yieldReason = reason; |
| 119 | } |
| 120 | |
| 121 | export function startUpdateTimerByLane( |
| 122 | lane: Lane, |
no test coverage detected