PGO Related Bugs/Thunderbird

From CDOT Wiki
Jump to: navigation, search

PGO Related Material for Thunderbird

Steps to Enable PGO for Windows

  • Step 1:

Modify the file $topsrcdir/mozilla/modules/lcms/src/ and add the line NO_PROFILE_GUIDED_OPTIMIZE = 1.

  • Step 2:

Configure the .mozconfig in the $topsrcdir for ac_add_options --enable-application=mail and mk_add_options MOZ_CO_PROJECT=mail. My .mozconfig looks like

ac_add_options --enable-application=mail
mk_add_options MOZ_CO_PROJECT=mail
mk_add_options MOZ_MAKE_FLAGS=-j5
ac_add_options --disable-vista-sdk-requirements
ac_add_options --disable-tests
ac_add_options --enable-optimize
ac_add_options --disable-debug
  • Step 3:

In the $topsrcdir execute the build command make -f build MOZ_PROFILE_GENERATE=1

  • Step 4:

After it has finished, Thunderbird needs to be profiled. Run the executable found in $objdir/mozilla/dist/bin and do a few scenarios and close Thunderbird.

  • Step 5:

This next step I did not due on Windows and it worked ok. I have to try it and see what happens. I'm told this step has to take place.
In the $topsrcdir execute the build command make -f clean

  • Step 6:

In the $topsrcdir execute the build command make -f build MOZ_PROFILE_USE=1

Now you have a build of Thunderbird that is optimized using PGO.