-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: error when 2 perf markers are stacked
We have 3 prod markers today, init, hydrate and rehydration queue. When 2 markers are stacked, for example, creating a component in the constructor of another will stack 2 init marks, once the second marker is measured, we need to clean the marks and measures and will clear the first one, and when the measure for that marker is done, it throws. Those cases are for init and hydrate, the rehydration queue measure is fine, we dont want to do it per component. This pr does 2 main things: 1- removes the init measure, cause we dont have a vm, and by the time is created in create component, it does not make sense to measure. 2- makes the marks for hydrate vm dependant, but the measure name is general, to pair it with the rehydration queue measure.
- Loading branch information
Showing
2 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters