Firefox/Projects/Startup Time Improvements/StartupPatchUsage: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with '= Startup Patch = == Quick Start == * Download 2 patches from {{bug|480735}} ** THESE MAY CHANGE, you may want to check the attachments on the bug before using the following pa…')
 
Line 14: Line 14:
** export NSPR_LOG_FILE=/path/to/startup_log
** export NSPR_LOG_FILE=/path/to/startup_log
* Start Firefox
* Start Firefox
* The logfile in /path/to/startup_log should have a bunch of timing information in it.

Revision as of 22:20, 21 July 2009

Startup Patch

Quick Start

  • Download 2 patches from bug 480735
    • THESE MAY CHANGE, you may want to check the attachments on the bug before using the following patches, and the eventual goal after review is having these patches checked into the trunk source.
      • C++ Function Timer [1]
      • Instrumentation Patch [2]
  • Before building you should update your mozconfig with the following option:
    • ac_add_options --enable-functiontimer
  • BUILD - please clobber your obj dir -
  • Add the following environment variables:
    • export NSPR_LOG_MODULES=functimer:5
    • export NSPR_LOG_FILE=/path/to/startup_log
  • Start Firefox
  • The logfile in /path/to/startup_log should have a bunch of timing information in it.