Author: www.softwareishard.com
<odvarko@gmail.com>Home Page: http://www.softwareishard.com/blog/ccdump/
You mostly want to start by clicking on Run CC Analysis button in the Home tab. After you do it, Firefox cycle collector runs three times to clean up garbage and consequently once, with a listener, to collect entire CC heap graph of objects in the memory. The result object graph is immediately displayed as a table where each entry represents an object.
The preferred way how to explore the graph is to search it. Use a search box located at the top right corner of the Home page. Note that if there is a string in the box the search runs automatically just after analysis.
You will typically look for documents that shouldn't be in the memory since the
parent tab has been already closed (so called zombie documents). Just search for
nsDocument
or pick Find Zombie Documents from the search option menu.
You can also search for http
to get all zombie elements.
You can search for any other keywords within object's name or use object's address. You can also use regular expressions.
As soon as you have some search results, e.g. zombie documents, you can continue exploring object graph related to the selected document. Click on the small black triangle next to object's name and pick one of the options.
Especially Show Graph allows to dramatically reduce the object graph to see only related objects and search further.
Note that this is a bootstrapped extension and so, you can install it any time when you experience a memory leak in your running browser and immediately start exploring your current CC graph (without browser restart).
false
CC is OK with freeing the objecttrue
the object is a rootnsICycleCollectorListener
interface
introduced in Firefox 13.
See following links to get more information or make suggestions about how this extension could be improved.
Home Page: http://www.softwareishard.com/blog/ccdump
Source Code: https://github.com/janodvarko/ccdump
Report issue: https://github.com/janodvarko/ccdump/issues