Performance:Tinderbox Tests: Difference between revisions

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
   <appname> resource:///res/bloatcycle.html > bloat.log
   python leaktest.py > 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) you can compare two logs using:


   export XPCOM_MEM_BLOAT_LOG=1
   $(SRCDIR)/tools/rb/bloatdiff.pl bloat1.log bloat2.log
  cvs co mozilla/tools/tinderbox/bloatdiff.pl
  <appname> resource:///res/bloatcycle.html > a.out
    **make change**
  <appname> resource:///res/bloatcycle.html > b.out
  bloatdiff.pl a.out b.out


See http://www.mozilla.org/projects/xpcom/MemoryTools.html for details.
See http://www.mozilla.org/projects/xpcom/MemoryTools.html for details.
Confirmed users
716

edits