(prevEffectStart: number)
| 451 | } |
| 452 | |
| 453 | export function popComponentEffectStart(prevEffectStart: number): void { |
| 454 | if (!enableProfilerTimer || !enableProfilerCommitHooks) { |
| 455 | return; |
| 456 | } |
| 457 | // If the parent component didn't have a start time, we let this current time persist. |
| 458 | if (prevEffectStart >= 0) { |
| 459 | // Otherwise, we restore the previous parent's start time. |
| 460 | componentEffectStartTime = prevEffectStart; |
| 461 | } |
| 462 | } |
| 463 | |
| 464 | export function pushComponentEffectDuration(): number { |
| 465 | if (!enableProfilerTimer || !enableProfilerCommitHooks) { |
no outgoing calls
no test coverage detected