Open main menu

CDOT Wiki β

Changes

PGO Related Bugs/Thunderbird

1,512 bytes added, 22:19, 15 November 2008
New page: PGO Related Material for Thunderbird ==Steps to Enable PGO for Windows== *Step 1: <blockquote> Modify the file $topsrcdir/mozilla/modules/lcms/src/Makefile.in and add the line <code>NO_...
PGO Related Material for Thunderbird

==Steps to Enable PGO for Windows==

*Step 1:
<blockquote>
Modify the file $topsrcdir/mozilla/modules/lcms/src/Makefile.in and add the line <code>NO_PROFILE_GUIDED_OPTIMIZE = 1</code>.
</blockquote>
*Step 2:
<blockquote>
Configure the .mozconfig in the $topsrcdir for <code>ac_add_options --enable-application=mail</code> and <code>mk_add_options MOZ_CO_PROJECT=mail</code>. My .mozconfig looks like
<pre>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
</pre>
</blockquote>
*Step 3:
<blockquote>
In the $topsrcdir execute the build command <code>make -f client.mk build MOZ_PROFILE_GENERATE=1</code>
</blockquote>
*Step 4:
<blockquote>
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.
</blockquote>
*Step 5:
<blockquote>
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.<br />
In the $topsrcdir execute the build command <code>make -f client.mk clean</code>
</blockquote>
*Step 6:
<blockquote>
In the $topsrcdir execute the build command <code>make -f client.mk build MOZ_PROFILE_USE=1</code>
</blockquote>

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