Currently, I am facing some unusual behavior in my rather large Angular (1.5) application. When I have Chrome DevTools open while loading the app, the CPU usage of that particular tab shoots up to 100%, causing the app to take a minute or more to load. Additionally, the memory usage spikes up to 500 MB and only about 150 MB gets garbage collected once the app is fully loaded.
However, if I load the app without DevTools open, it loads within a couple of seconds and runs smoothly afterward.
The memory usage appears to be stable during normal usage as I have optimized the ngRepeats with custom repeaters to keep the watch count in check.
I have tested this on various machines and operating systems, and even tried loading the app without any Chrome extensions enabled.
This issue seems to be specific to Chrome browsers, as Safari does not exhibit similar problems.
Perhaps running a timeline profile could shed light on the situation? Strangely enough, the problem disappears when attempting to record a timeline profile.
Does anyone have any insights into what might be causing this peculiar behavior?