I recently inherited some AngularJS code (I cannot post the code) and noticed a huge delay on boot. This is completely unacceptable, and I need to optimize it. Using the chronology of Chrome, I noticed that there are many scenarios that do not really matter.

I tried using Batarang, but even the longest expression was just a date function and was insignificant compared to everything else. I have a feeling that his controller is incredibly greasy and spaghetti, and I need to somehow measure this controller or at least figure out what the bottleneck is before I start refactoring.
source share