Confirmed users
716
edits
| Line 58: | Line 58: | ||
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: | 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: | ||
cd $(OBJDIR)/_leaktest | |||
export XPCOM_MEM_BLOAT_LOG=1 | export XPCOM_MEM_BLOAT_LOG=1 | ||
python leaktest.py > bloat.log | |||
If you want to compare two runs (e.g. test a change) | If you want to compare two runs (e.g. test a change) you can compare two logs using: | ||
$(SRCDIR)/tools/rb/bloatdiff.pl bloat1.log bloat2.log | |||
See http://www.mozilla.org/projects/xpcom/MemoryTools.html for details. | See http://www.mozilla.org/projects/xpcom/MemoryTools.html for details. | ||