Debug angular 2 performance

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.

+4
source share
1 answer

chrome "" " JavaScript", , , , . Internet Explorer.

+2

Source: https://habr.com/ru/post/1658230/


All Articles