Here is another part of my work on memory analysis in Mozilla :
By selecting one file, you are seeing the number of living object sorted by there instantiation line :
- Define a JS object by its attributes, like Atul Varma is doing in its current work,
- By its JS Prototype name, very usefull "typing" when you are using Prototype and build Object-Oriented JS,
- We are facing some specialized objects like all DOM objects : HTMLFormElement, HTMLDivElement, …
- And finally all native types, like Array, String, Date, RegExp, … etc.
Finally, let’s see how to make this extension work :
- First It contains a binary component which is only built for Firefox 3.5 and 3.6 for Windows and Linux-32.
- Secondly The memory profiling component is a patched version of the Mozilla Jetpack’s one, so take care to disable Jetpack, before testing this!
- Then In order to get the maximum information about your
living JS object, I strongly encourage you to set these two prefs to false :
- That being said, you just have to install this extension another-profiler_techno-barje.fr.xpi, go to your Tools menu and click on "Open another memory profiler".
Come back for the next post for some more explanation on displayed results with simple scripts examples.