874
edits
(added image) |
(added more docs) |
||
| Line 1: | Line 1: | ||
'''Memory Profiler''' is an experimental Labs project that attempts to make debugging memory use in web pages easier. | '''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 [http://www.toolness.com/wp/?p=709 Web Application Memory Profiling, Take Two]. | ||
http://farm4.static.flickr.com/3425/3988687880_7073e5b7e8_o.png | |||
= Installation and Use = | |||
The Firefox extension is available here: | The Firefox extension is available here: | ||
| Line 7: | Line 11: | ||
https://addons.mozilla.org/en-US/firefox/addon/14666/ | https://addons.mozilla.org/en-US/firefox/addon/14666/ | ||
You can access the tool by going to the "Tools" menu and selecting "Memory Profiler". | |||
= Building from Source = | |||
Running the extension from the source requires first getting the Jetpack source code here: | |||
http://hg.mozilla.org/labs/jetpack/ | |||
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/ | 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]]. | 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. | ||
edits