What is the difference between the 'self' and 'total' columns in the Chrome CPU profiling of JS code?
(JS代码的Chrome CPU分析中的“自我”和“总”列之间有什么区别?)
self is how much time was spent doing work directly in that function.
self
(self是直接在该函数中工作的时间。)
total is how much time was spent in that function, and in the functions it called.
total
(total是在该函数中花费了多少时间,以及它所调用的函数。)
2.1m questions
2.1m answers
60 comments
57.0k users