Created
March 31, 2016 07:39
-
-
Save frontenddeveloping/d00277280bd637cb6203df32cd5c6619 to your computer and use it in GitHub Desktop.
DevTools Perdomance annotation example
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
//@DevToolsPerfTest('my_super_fast_code') | |
Array(1e6).fill(1).map(() => Math.random()) | |
//@DevToolsPerfTestEnd('my_super_fast_code', 5) | |
// if my code runs more than 5ms I want to get warining in console. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment