Labs/Memory Profiler: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(added more docs)
(modified developer information to point to SDK docs)
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
You can access the tool by going to the "Tools" menu and selecting "Memory Profiler".
You can access the tool by going to the "Tools" menu and selecting "Memory Profiler".


= Building from Source =
= Development =


Running the extension from the source requires first getting the Jetpack source code here:
The binary component for the memory profiler has been moved to the [https://jetpack.mozillalabs.com/sdk/latest/docs/ Jetpack SDK]; Markdown documentation for it can be found here:


   http://hg.mozilla.org/labs/jetpack/
   http://hg.mozilla.org/labs/jetpack-sdk/file/tip/packages/nsjetpack/docs/nsjetpack.md
 
You'll need to build the XPCOM component there. In a parallel directory to this repository, clone the Memory Profiler repository:
 
  http://hg.mozilla.org/users/avarma_mozilla.com/memory-profiler/
 
= Understanding the Source =
 
For information on how to create your own custom memory profiling routines, check out the [[Labs/Jetpack/Binary_Components#Memory_Profiling|Jetpack Binary Components API]].


See Atul's blog post entitled [http://www.toolness.com/wp/?p=604 Fun with SpiderMonkey] for information on how the memory profiler works.
See Atul's blog post entitled [http://www.toolness.com/wp/?p=604 Fun with SpiderMonkey] for information on how the memory profiler works.

Latest revision as of 22:08, 22 April 2010

Memory Profiler is an experimental Labs project that attempts to make debugging memory use in web pages easier.

For more information about the tool's design and rationale, see Atul's blog post entitled Web Application Memory Profiling, Take Two.

3988687880_7073e5b7e8_o.png

Installation and Use

The Firefox extension is available here:

 https://addons.mozilla.org/en-US/firefox/addon/14666/

You can access the tool by going to the "Tools" menu and selecting "Memory Profiler".

Development

The binary component for the memory profiler has been moved to the Jetpack SDK; Markdown documentation for it can be found here:

 http://hg.mozilla.org/labs/jetpack-sdk/file/tip/packages/nsjetpack/docs/nsjetpack.md

See Atul's blog post entitled Fun with SpiderMonkey for information on how the memory profiler works.