Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1593)

Unified Diff: scripts/slave/recipe_modules/chromium/config.py

Issue 302763003: First version of the PGO recipe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium_pgo.py » ('j') | scripts/slave/recipes/chromium_pgo.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/chromium/config.py
diff --git a/scripts/slave/recipe_modules/chromium/config.py b/scripts/slave/recipe_modules/chromium/config.py
index 858ea2ad9118c23db6983af78dbe79be563045c6..b6ce84133e50a9853082e4b2694fad9eab130365 100644
--- a/scripts/slave/recipe_modules/chromium/config.py
+++ b/scripts/slave/recipe_modules/chromium/config.py
@@ -414,3 +414,21 @@ def _android_common(c):
def codesearch(c):
gyp_defs = c.gyp_env.GYP_DEFINES
gyp_defs['fastbuild'] = 1
+
+
+@config_ctx()
+def chrome_pgo_base(c):
+ c.gyp_env.GYP_DEFINES['buildtype'] = 'Official'
+ c.gyp_env.GYP_DEFINES['optimize'] = 'max'
+ c.gyp_env.GYP_DEFINES['use_goma'] = 0
+ c.gyp_env.GYP_DEFINES['fastbuild'] = 0
+ c.compile_py.default_targets = ['chrome']
+
+#### 'Full' configurations
+@config_ctx(includes=['chrome_pgo_base'])
+def chrome_pgo_instrument(c):
+ c.gyp_env.GYP_DEFINES['chrome_pgo_phase'] = 1
+
+@config_ctx(includes=['chrome_pgo_base'])
+def chrome_pgo_optimize(c):
+ c.gyp_env.GYP_DEFINES['chrome_pgo_phase'] = 2
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium_pgo.py » ('j') | scripts/slave/recipes/chromium_pgo.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698