I noticed that my angular 2 application is getting a little sluggish. For example, the time between pressing a button (which sets a certain state) and displaying the result (based on this state value) has a certain delay (~ 1 s). I suspect that some methods called during each change detection cycle have some performance issues.
Can anyone give directions regarding:
1) How to determine the runtime of each change detection cycle?
2) How to pinpoint method calls that contribute significantly to latency?
Thank.
source
share