| 370 | } |
| 371 | |
| 372 | export function clampGestureTimers(finalTime: number): void { |
| 373 | if (!enableProfilerTimer || !enableComponentPerformanceTrack) { |
| 374 | return; |
| 375 | } |
| 376 | // If we had new updates come in while we were still rendering or committing, we don't want |
| 377 | // those update times to create overlapping tracks in the performance timeline so we clamp |
| 378 | // them to the end of the commit phase. |
| 379 | gestureClampTime = finalTime; |
| 380 | } |
| 381 | |
| 382 | export function clampTransitionTimers(finalTime: number): void { |
| 383 | if (!enableProfilerTimer || !enableComponentPerformanceTrack) { |