<p>Recently I have been having issues with Firefox 3 on Ubuntu Hardy Heron.</p>

<p>I will click on a link and it will hang for a while.  I don't know if its a bug in Firefox 3 or a page running too much client side JavaScript, but I would like to try and debug it a bit.</p>

<p>So, my question is "is there a way to have some kind of process explorer, or task manager sort of thing for Firefox 3?"</p>

<p>I would like to be able to see what tabs are using what percent of my processor via the JavaScript on that page (or anything in the page that is causing CPU/memory usage).  </p>

<p>Does anybody know of a plugin that does this, or something similar?  Has anyone else done this kind of inspection another way?</p>

<p>I know about FireBug, but I can't imagine how I would use it to finger which tab is using a lot of resources.</p>

<p>Any suggestions or insights?</p>

[{'answer_id': 7570, 'author': 'Orion Edwards', 'author_id': 234, 'author_profile': 'https://Stackoverflow.com/users/234', 'pm_score': 4, 'selected': True, 'text': '<p>It\'s probably the <a href="http://shaver.off.net/diary/2008/05/25/fsyncers-and-curveballs/" rel="noreferrer">awesome firefox3 fsync "bug"</a>, which is a giant pile of fail.</p>\n\n<p>In summary</p>\n\n<ul>\n<li>Firefox3 saves its bookmarks and history in an SQLite database</li>\n<li>Every time you load a page it writes to this database several times</li>\n<li>SQLite cares deeply that you don\'t lose your bookmarks, so each time it writes, instructs the kernel to flush it\'s database file to disk and ensure that it\'s fully written</li>\n<li>Many variants of linux, when told to flush like that, flush EVERY FILE. This may take up to a minute or more if you have background tasks doing any kind of disk intensive stuff.</li>\n<li>The kernel makes firefox wait while this flush happens, which locks up the UI.</li>\n</ul>\n'}, {'answer_id': 7876, 'author': 'Nickolay', 'author_id': 1026, 'author_profile': 'https://Stackoverflow.com/users/1026', 'pm_score': 1, 'selected': False, 'text': '<p>There\'s no &quot;process explorer&quot; kind of tool for Firefox; but there\'s <a href="https://developer.mozilla.org/en-US/docs/Archive/Mozilla/Venkman" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Archive/Mozilla/Venkman</a> with profiling mode, which you could use to see the time spent by chrome (meaning non-content, that is not web-page) scripts.</p>\n<p>From what I\'ve read about it, DTrace might also be useful for this sort of thing, but it requires creating a custom build and possibly adding additional probes to the source. I haven\'t played with it myself yet.</p>\n'}, {'answer_id': 17391, 'author': 'jsight', 'author_id': 1432, 'author_profile': 'https://Stackoverflow.com/users/1432', 'pm_score': 1, 'selected': False, 'text': '<p>There\'s a <a href="http://shaver.off.net/diary/2008/05/25/fsyncers-and-curveballs/" rel="nofollow noreferrer">thorough discussion of this</a> that explains all of the fsync related problems that affected pre-3.0 versions of FF.  In general, I have not seen the behaviour since then either, and really it shouldn\'t be a problem at all if your system isn\'t also doing IO intensive tasks.  Firebug/Venkman make for nice debuggers, but they would be painful for figuring out these kinds of problems for someone else\'s code, IMO.</p>\n\n<p>I also wish that there was an easy way to look at CPU utilization in Firefox by tab, though, as I often find myself with FF eating 100% CPU, but no clue which part is causing the problem.</p>\n'}, {'answer_id': 39033, 'author': 'Pat', 'author_id': 238, 'author_profile': 'https://Stackoverflow.com/users/238', 'pm_score': 2, 'selected': False, 'text': '<blockquote>\n  <p>So, my question is, is there a way to have some kind of process explorer, or task manager sort of thing for Firefox 3?</p>\n</blockquote>\n\n<p>Because of the way Firefox is built this is not possible at the moment. But the new Internet Explorer 8 Beta 2 and the just announced Google Chrome browser are heading in that direction, so I suppose Firefox will be heading there too.</p>\n\n<p>Here is a post (<a href="http://ejohn.org/blog/google-chrome-process-manager/" rel="nofollow noreferrer">  Google Chrome Process Manager </a> ),by John Resig from Mozilla and jQuery fame on the subject.</p>\n'}, {'answer_id': 2498368, 'author': 'Aaron Thoma', 'author_id': 234309, 'author_profile': 'https://Stackoverflow.com/users/234309', 'pm_score': 1, 'selected': False, 'text': '<p><a href="https://addons.mozilla.org/en-US/firefox/addon/9954" rel="nofollow noreferrer">XUL Profiler</a> is an awesome extension that can point out extensions and client side JS gone bananas CPU-wise. It does not work on a per-tab basis, but per-script (or so). You can normally relate those .js scripts to your tabs or extensions by hand.</p>\n\n<p>It is also worth mentioning that Google Chrome has built-in a really good task manager that gives memory and CPU usage per tab, extension and plugin.</p>\n\n<blockquote>\n  <p>[XUL Profiler] is a Javascript profiler. It\n  shows elapsed time in each method as a\n  graph, as well as browser canvas zones\n  redraws to help track down consuming\n  CPU chunks of code.</p>\n  \n  <p>Traces all JS calls and paint events\n  in XUL and pages context. Builds an\n  animation showing dynamically the\n  canvas zones being redrawn.</p>\n</blockquote>\n\n<p>As of FF 3.6.10 it is not up to date in that it is not marked as compatible anymore. But it still works and you can override the incompatibility with the equally awesome <a href="https://addons.mozilla.org/en-US/firefox/addon/mr-tech-toolkit/" rel="nofollow noreferrer" title="MR Tech Toolkit extension">MR Tech Toolkit extension</a>.</p>\n'}]
['https://Stackoverflow.com/questions/7540', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/122/']