Performance:Tinderbox Tests: Difference between revisions

Jump to navigation Jump to search
m
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


Bloat and leak summaries dumped out to <code>stdout</code>.
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
   &lt;appname&gt; resource:///res/bloatcycle.html > a.out
   XPCOM_MEM_REFCNT_LOG=a.out &lt;appname&gt; resource:///res/bloatcycle.html
     **make change**
     **make change**
   &lt;appname&gt; resource:///res/bloatcycle.html > b.out
   XPCOM_MEM_REFCNT_LOG=b.out &lt;appname&gt; resource:///res/bloatcycle.html
   bloatdiff.pl a.out b.out
   bloatdiff.pl a.out b.out


15

edits

Navigation menu