How do I find out what functions are called when a button is pressed in Chrome Console?

后端 未结 4 396
[愿得一人]
[愿得一人] 2020-12-01 04:11

I am trying to teach myself the Google Closure javascript library. I am examining the TreeControl UI widget.

How can I use Chrome Console to analyze what functions a

4条回答
  •  庸人自扰
    2020-12-01 04:54

    The thing that you are looking for is called 'Profiling'.

    It can be achieved by:

    1. Go to Profiles
    2. Choose first option ('Collect JavaScript CPU Profile')
    3. Start it before pressing button 'Cut'

提交回复
热议问题