3 ms·
Plugin memory usage tracking is only realistically possible for Chrome where plugins run in a sandbox with a really limited API. Even then, if the plugin manage
by kevingadd 13y ago
Plugin memory usage tracking is only realistically possible for Chrome where plugins run in a sandbox with a really limited API. Even then, if the plugin manages to allocate memory inside a page's sandbox (for example, by injecting some CSS or JS in there), the reporting will be wrong.
The adblock plus problem is in fact one of those - it injects styles into pages in order to filter ads, which increases the memory footprint of the page. So neither Firefox nor Chrome can tell you 'adblock plus is increasing memory usage by X', because the memory usage is hidden along with everything else owned by the page, not by the addon.
- cpeterso 13y agoFirefox is adding "add-on compartments" (bug 990729) that allocate separate memory arenas for each add-on. Firefox will be able to use this information to track (most) memory usage for each add-on. https://bugzilla.mozilla.org/show_bug.cgi?id=990729 https://bugzilla.mozilla.org/show_bug.cgi?id=990729
- nnethercote 13y agoIt can already measure some parts of add-on memory usage, and you can see this by looking for "add-ons" in about:memory. Bug 990729 will improve the accuracy of the measurements.
- Spittie 13y agoThere is also this addon (https://addons.mozilla.org/en-us/firefox/addon/about-addons-memory/ https://addons.mozilla.org/en-us/firefox/addon/about-addons-...) which has a somewhat nicer interface.
- enscr 13y agoGood point, I overlooked the 'injection' part.