15
edits
| Line 49: | Line 49: | ||
ac_add_options --enable-logrefcnt | ac_add_options --enable-logrefcnt | ||
and reconfigure and rebuild. Then run the app on the bloaturls list of urls with the environment variable | and reconfigure and rebuild. Then run the app on the bloaturls list of urls with the environment variable XPCOM_MEM_BLOAT_LOG set to 1 to dump bloat and leak summaries to stdout: | ||
export | export XPCOM_MEM_BLOAT_LOG=1 | ||
<appname> resource:///res/bloatcycle.html > bloat.log | <appname> resource:///res/bloatcycle.html > bloat.log | ||
If you want to compare two runs (e.g. test a change) do something like this: | If you want to compare two runs (e.g. test a change) do something like this: | ||
export | export XPCOM_MEM_BLOAT_LOG=1 | ||
cvs co mozilla/tools/tinderbox/bloatdiff.pl | cvs co mozilla/tools/tinderbox/bloatdiff.pl | ||
<appname> resource:///res/bloatcycle.html > a.out | <appname> resource:///res/bloatcycle.html > a.out | ||
| Line 63: | Line 63: | ||
bloatdiff.pl a.out b.out | bloatdiff.pl a.out b.out | ||
See http://www.mozilla.org/projects/xpcom/MemoryTools.html for details. | |||
= Trace-Malloc Bl/Lk: Bloat & Leak numbers = | = Trace-Malloc Bl/Lk: Bloat & Leak numbers = | ||
edits