Return to site

Memory leaks in firefox

broken image
broken image

I implemented a bootstrapped (restart-less) extension that can be installed at the moment when you are experiencing a zombie compartment in your browser session - and immediately (without restart) analyze the current CC graph.

broken image
broken image
broken image

Thanks to Olli Pettay who implemented a new API (introduced in Firefox 13, current Nightly) that allows to dynamically analyze the CC object graph from within an extension. That's why I decided to automate the entire process. Manual creation and search is tedious and you can easily spent hours and hours by repeating manual steps: open Firefox, reproduce a memory leak, execute the script to get the log, open the text file, search for zombie document, search for related objects, etc. This file contains text representation of the entire graph and you can use any text editor to search it. nsICycleCollectorListener ) )Ī file, something like: is created and path to it logged into the Error Console.