Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To analyse CPU consumption of Firefox addons in SO [closed]

I currently analyse inefficient Firefox addons by uninstalling them and seeing empirically in a long run whether the addon was a problem or not. However, this way of finding the inefficient addons is very time-consuming.

I would like to know exact numerical ways to see

  1. the CPU consumption for each addon independently in Firefox
  2. the CPU consumption for two different addons at the same time in Firefox (note that it is not practical to have two addons in your browser at each time and then measure the need in a long term)

It is apparently enough to measure only CPU, not memory consumption at all, to keep tests simple.

Is there any tool to measure CPU consumption for the combination of 2 in a set of addons?

like image 933
Léo Léopold Hertz 준영 Avatar asked Jul 15 '09 21:07

Léo Léopold Hertz 준영


1 Answers

No, unfortunately there is no such tool. The closest thing are various profiling tools (like Venkman), which can show you time spent in various JS functions, but aggregating that data to determine if an extension is inefficient will be tricky.

Mozilla also uses dtrace on Mac (with special builds of Firefox and special dtrace scripts) to analyze performance. I imagine it could be adapted for this too.

like image 107
Nickolay Avatar answered Nov 10 '22 10:11

Nickolay