Skip to content

Commit

Permalink
Bug 873640 - Fix and cleanup profiledbuild profile script invocation.…
Browse files Browse the repository at this point in the history
… r=ted
  • Loading branch information
glandium committed May 21, 2013
1 parent 2c40268 commit 461bfb0
Show file tree
Hide file tree
Showing 16 changed files with 1 addition and 229 deletions.
3 changes: 0 additions & 3 deletions b2g/config/mozconfigs/linux32_gecko/nightly
Expand Up @@ -16,9 +16,6 @@ ac_add_options --enable-stdcxx-compat
# by 2 MBs.
STRIP_FLAGS="--strip-debug"

# PGO
mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'

# Needed to enable breakpad in application.ini
export MOZILLA_OFFICIAL=1

Expand Down
3 changes: 0 additions & 3 deletions b2g/config/mozconfigs/linux64_gecko/nightly
Expand Up @@ -16,9 +16,6 @@ ac_add_options --enable-stdcxx-compat
# by 2 MBs.
STRIP_FLAGS="--strip-debug"

# PGO
mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'

# Needed to enable breakpad in application.ini
export MOZILLA_OFFICIAL=1

Expand Down
3 changes: 0 additions & 3 deletions b2g/config/mozconfigs/win32_gecko/nightly
@@ -1,8 +1,5 @@
. "$topsrcdir/b2g/config/mozconfigs/common"

# for pgo
mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) $(MOZ_OBJDIR)/_profile/pgo/profileserver.py'

ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
ac_add_options --enable-update-packaging
ac_add_options --enable-jemalloc
Expand Down
2 changes: 0 additions & 2 deletions browser/config/mozconfigs/linux32/beta
Expand Up @@ -7,9 +7,7 @@ ac_add_options --enable-official-branding
# Avoid dependency on libstdc++ 4.5
ac_add_options --enable-stdcxx-compat

# PGO
mk_add_options MOZ_PGO=1
mk_add_options PROFILE_GEN_SCRIPT='EXTRA_TEST_ARGS=10 $(MAKE) -C $(MOZ_OBJDIR) pgo-profile-run'

# Needed to enable breakpad in application.ini
export MOZILLA_OFFICIAL=1
Expand Down
3 changes: 0 additions & 3 deletions browser/config/mozconfigs/linux32/nightly
Expand Up @@ -17,9 +17,6 @@ ac_add_options --enable-stdcxx-compat
# by 2 MBs.
STRIP_FLAGS="--strip-debug"

# PGO
mk_add_options PROFILE_GEN_SCRIPT='EXTRA_TEST_ARGS=10 $(MAKE) -C $(MOZ_OBJDIR) pgo-profile-run'

# Needed to enable breakpad in application.ini
export MOZILLA_OFFICIAL=1

Expand Down
3 changes: 0 additions & 3 deletions browser/config/mozconfigs/linux32/qt
Expand Up @@ -9,9 +9,6 @@ ac_add_options --enable-stdcxx-compat
# Needed to enable breakpad in application.ini
export MOZILLA_OFFICIAL=1

# PGO
mk_add_options PROFILE_GEN_SCRIPT='EXTRA_TEST_ARGS=10 $(MAKE) -C $(MOZ_OBJDIR) pgo-profile-run'

#Use ccache
ac_add_options --with-ccache=/usr/bin/ccache

Expand Down
2 changes: 0 additions & 2 deletions browser/config/mozconfigs/linux32/rpm
Expand Up @@ -19,8 +19,6 @@ export MOZILLA_OFFICIAL=1

export MOZ_TELEMETRY_REPORTING=1

mk_add_options PROFILE_GEN_SCRIPT='$(MAKE) -C $(MOZ_OBJDIR) pgo-profile-run'

#Use ccache
ac_add_options --with-ccache=/usr/bin/ccache

Expand Down
2 changes: 0 additions & 2 deletions browser/config/mozconfigs/linux64/beta
Expand Up @@ -7,9 +7,7 @@ ac_add_options --enable-official-branding
# Avoid dependency on libstdc++ 4.5
ac_add_options --enable-stdcxx-compat

# PGO
mk_add_options MOZ_PGO=1
mk_add_options PROFILE_GEN_SCRIPT='EXTRA_TEST_ARGS=10 $(MAKE) -C $(MOZ_OBJDIR) pgo-profile-run'

# Needed to enable breakpad in application.ini
export MOZILLA_OFFICIAL=1
Expand Down
3 changes: 0 additions & 3 deletions browser/config/mozconfigs/linux64/nightly
Expand Up @@ -17,9 +17,6 @@ ac_add_options --enable-stdcxx-compat
# by 2 MBs.
STRIP_FLAGS="--strip-debug"

# PGO
mk_add_options PROFILE_GEN_SCRIPT='EXTRA_TEST_ARGS=10 $(MAKE) -C $(MOZ_OBJDIR) pgo-profile-run'

# Needed to enable breakpad in application.ini
export MOZILLA_OFFICIAL=1

Expand Down
2 changes: 0 additions & 2 deletions browser/config/mozconfigs/linux64/rpm
Expand Up @@ -19,8 +19,6 @@ export MOZILLA_OFFICIAL=1

export MOZ_TELEMETRY_REPORTING=1

mk_add_options PROFILE_GEN_SCRIPT='$(MAKE) -C $(MOZ_OBJDIR) pgo-profile-run'

#Use ccache
ac_add_options --with-ccache=/usr/bin/ccache

Expand Down
2 changes: 0 additions & 2 deletions browser/config/mozconfigs/win32/beta
@@ -1,8 +1,6 @@
. "$topsrcdir/browser/config/mozconfigs/common"

# for pgo
mk_add_options MOZ_PGO=1
mk_add_options PROFILE_GEN_SCRIPT='$(MAKE) -C $(MOZ_OBJDIR) pgo-profile-run'

ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
ac_add_options --enable-update-packaging
Expand Down
3 changes: 0 additions & 3 deletions browser/config/mozconfigs/win32/nightly
@@ -1,8 +1,5 @@
. "$topsrcdir/browser/config/mozconfigs/common"

# for pgo
mk_add_options PROFILE_GEN_SCRIPT='$(MAKE) -C $(MOZ_OBJDIR) pgo-profile-run'

ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
ac_add_options --enable-update-packaging
ac_add_options --enable-jemalloc
Expand Down
3 changes: 0 additions & 3 deletions browser/config/mozconfigs/win64/nightly
Expand Up @@ -3,9 +3,6 @@
ac_add_options --target=x86_64-pc-mingw32
ac_add_options --host=x86_64-pc-mingw32

# for pgo
mk_add_options PROFILE_GEN_SCRIPT='$(MAKE) -C $(MOZ_OBJDIR) pgo-profile-run'

ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
ac_add_options --enable-update-packaging
ac_add_options --enable-jemalloc
Expand Down
11 changes: 0 additions & 11 deletions build/profile_pageloader.html

This file was deleted.

177 changes: 0 additions & 177 deletions build/profile_pageloader.pl

This file was deleted.

8 changes: 1 addition & 7 deletions client.mk
Expand Up @@ -197,12 +197,6 @@ everything: clean build

####################################
# Profile-Guided Optimization
# To use this, you should set the following variables in your mozconfig
# mk_add_options PROFILE_GEN_SCRIPT=/path/to/profile-script
#
# The profile script should exercise the functionality to be included
# in the profile feedback.
#
# This is up here, outside of the MOZ_CURRENT_PROJECT logic so that this
# is usable in multi-pass builds, where you might not have a runnable
# application until all the build passes and postflight scripts have run.
Expand All @@ -216,7 +210,7 @@ profiledbuild::
$(MAKE) -f $(TOPSRCDIR)/client.mk realbuild MOZ_PROFILE_GENERATE=1 MOZ_PGO_INSTRUMENTED=1
$(MAKE) -C $(PGO_OBJDIR) package MOZ_PGO_INSTRUMENTED=1 MOZ_INTERNAL_SIGNING_FORMAT= MOZ_EXTERNAL_SIGNING_FORMAT=
rm -f ${PGO_OBJDIR}/jarlog/en-US.log
MOZ_PGO_INSTRUMENTED=1 OBJDIR=${PGO_OBJDIR} JARLOG_FILE=${PGO_OBJDIR}/jarlog/en-US.log $(PROFILE_GEN_SCRIPT)
MOZ_PGO_INSTRUMENTED=1 JARLOG_FILE=jarlog/en-US.log EXTRA_TEST_ARGS=10 $(MAKE) -C $(PGO_OBJDIR) pgo-profile-run
$(MAKE) -f $(TOPSRCDIR)/client.mk maybe_clobber_profiledbuild
$(MAKE) -f $(TOPSRCDIR)/client.mk realbuild MOZ_PROFILE_USE=1

Expand Down

0 comments on commit 461bfb0

Please sign in to comment.