Understanding Firebug profiler output

后端 未结 4 1372
慢半拍i
慢半拍i 2020-11-30 22:51

I\'ve been trying to use Firebug\'s profiler to better understand the source of some JavaScript performance issues we are seeing, but I\'m a little confused by the output.

4条回答
  •  长情又很酷
    2020-11-30 23:52

    If I understand things correctly it goes something like this:

    On the first line you'll see that the Own time is "only 0.006ms". That means that even though time spent in that function was 783.506ms most of it was spent inside functions called from that function.

    When I use Firebug to optimize code I try to reduce the "own time" of functions that are called the most. (obviously checking also for any unnecessary function calls to remove altogether)

提交回复
热议问题