Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save frontenddeveloping/d00277280bd637cb6203df32cd5c6619 to your computer and use it in GitHub Desktop.
Save frontenddeveloping/d00277280bd637cb6203df32cd5c6619 to your computer and use it in GitHub Desktop.
DevTools Perdomance annotation example
//@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