canmove, Confirmed users, Bureaucrats and Sysops emeriti
1,334
edits
| Line 128: | Line 128: | ||
==== Firefox ==== | ==== Firefox ==== | ||
# load resource:///res/bloatcycle.html and tell the popup blocker to allow popups from it | |||
# Edit the preferences file or use about:config to set the pref "dom.allow_scripts_to_close_windows" to true | |||
# set the environment variable XPCOM_MEM_LEAK_LOG to leak.log (or XPCOM_MEM_BLOAT_LOG to bloat.log) | # set the environment variable XPCOM_MEM_LEAK_LOG to leak.log (or XPCOM_MEM_BLOAT_LOG to bloat.log) | ||
# ./firefox -no-remote resource:///res/bloatcycle.html | # ./firefox -no-remote resource:///res/bloatcycle.html | ||
# Look at the top line of bloat.log or leak.log for the aggregate statistics (under headers Bytes/Leaked (for leaks) and Objects/Total (for "bloat"), and look at the other lines for the summary of objects. | # Look at the top line of bloat.log or leak.log for the aggregate statistics (under headers Bytes/Leaked (for leaks) and Objects/Total (for "bloat"), and look at the other lines for the summary of objects. | ||