Created
November 18, 2020 12:01
-
-
Save wilsonpage/502c8c2552b0703fa9854ac07098e61b to your computer and use it in GitHub Desktop.
How to create a performance measurement that shows on devtools timeline
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
performance.mark('myMark-start'); | |
// your code | |
performance.mark('myMark-end'); | |
performance.measure('myPerfMarker', 'myMark-start', 'myMark-end'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment