Created
May 6, 2020 03:56
-
-
Save brookjordan/4e4d9ce16fe3526af339ceb997ba6f61 to your computer and use it in GitHub Desktop.
Print paint performance metrics
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
console.log(` ‾‾‾‾ | |
Paint time for ${location}:${ | |
performance.getEntriesByType("paint").map(({ name, startTime }) => ` | |
• ${name}: ${startTime}ms`)} | |
____`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment