Skip to content

Instantly share code, notes, and snippets.

@wilsonpage
Created November 18, 2020 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilsonpage/502c8c2552b0703fa9854ac07098e61b to your computer and use it in GitHub Desktop.
Save wilsonpage/502c8c2552b0703fa9854ac07098e61b to your computer and use it in GitHub Desktop.
How to create a performance measurement that shows on devtools timeline
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