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: | and reconfigure and rebuild. Then run the app on the bloaturls list of urls with the environment variable XPCOM_MEM_REFCNT_LOG set to point to a file where to dump bloat an leak summaries: | ||
export XPCOM_MEM_REFCNT_LOG=bloat.log | |||
<appname> resource:///res/bloatcycle.html | <appname> resource:///res/bloatcycle.html | ||
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: | ||
cvs co mozilla/tools/tinderbox/bloatdiff.pl | cvs co mozilla/tools/tinderbox/bloatdiff.pl | ||
<appname> resource:///res/bloatcycle.html | XPCOM_MEM_REFCNT_LOG=a.out <appname> resource:///res/bloatcycle.html | ||
**make change** | **make change** | ||
<appname> resource:///res/bloatcycle.html | XPCOM_MEM_REFCNT_LOG=b.out <appname> resource:///res/bloatcycle.html | ||
bloatdiff.pl a.out b.out | bloatdiff.pl a.out b.out | ||
edits