| 360 | } |
| 361 | |
| 362 | export function clampBlockingTimers(finalTime: number): void { |
| 363 | if (!enableProfilerTimer || !enableComponentPerformanceTrack) { |
| 364 | return; |
| 365 | } |
| 366 | // If we had new updates come in while we were still rendering or committing, we don't want |
| 367 | // those update times to create overlapping tracks in the performance timeline so we clamp |
| 368 | // them to the end of the commit phase. |
| 369 | blockingClampTime = finalTime; |
| 370 | } |
| 371 | |
| 372 | export function clampGestureTimers(finalTime: number): void { |
| 373 | if (!enableProfilerTimer || !enableComponentPerformanceTrack) { |