mootuta.blogg.se

Memory leak in firefox
Memory leak in firefox




Use a search box located at the top right corner. Show Graph allows to dramatically reduce the object graph to see only related objects and search further only in the sub-graph result.

memory leak in firefox memory leak in firefox

Show Graph - get all objects that are directly or indirectly related to the object (the result is displayed as an expandable tree).Show Roots - get roots that keep this object in the memory.Show Details - see detailed information about the object.There are three ways how to query the graph. The result object graph is immediately displayed as a table where each entry represents an object.Įvery object has a context menu, just click the black triangle next to the green object label. After you do it, Firefox cycle collector runs three times to clean up garbage and consequently once, with a listener, to collect entire CC graph of objects in the memory. You mostly want to start by clicking on Run CC Analysis button in the Home tab. CCDumpĪfter you install the extension, open: about:ccdump You can download from AMO, get the latest build, or clone the source code (BSD License). You can also use about:memory I order to see zombie compartments.ĬCDump extension can be used to search within the object graph and execute queries to get the information you need. 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. 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.

memory leak in firefox

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.

memory leak in firefox

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.






Memory leak in firefox