Difference between 'self' and 'total' in Chrome CPU Profile of JS

后端 未结 2 662
隐瞒了意图╮
隐瞒了意图╮ 2020-12-12 13:32

What is the difference between the \'self\' and \'total\' columns in the Chrome CPU profiling of JS code?

\"ente

2条回答
  •  长情又很酷
    2020-12-12 13:51

    self is how much time was spent doing work directly in that function.

    total is how much time was spent in that function, and in the functions it called.

提交回复
热议问题