Created
October 5, 2016 23:04
-
-
Save gdpelican/80c2226930e80046c7dd1e87837f8e3b to your computer and use it in GitHub Desktop.
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
running = false | |
$rootScope.$watch -> | |
return if running | |
running = true | |
console.time('digestLoop') | |
$rootScope.$$postDigest -> | |
console.timeEnd('digestLoop') | |
running = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will log the length of each digest loop to the console. Sample output: