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

Unified Diff: scripts/slave/recipe_modules/goma/example.py

Issue 2291273005: Add counting the number of CPU's in goma module (Closed)
Patch Set: stop to calc in ensure_goma Created 4 years, 3 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
Index: scripts/slave/recipe_modules/goma/example.py
diff --git a/scripts/slave/recipe_modules/goma/example.py b/scripts/slave/recipe_modules/goma/example.py
index 301a677c9f21ec4e557cb1d9f6697f649bf45deb..9afd22de88f038fd3803344846a7275f06bd9710 100644
--- a/scripts/slave/recipe_modules/goma/example.py
+++ b/scripts/slave/recipe_modules/goma/example.py
@@ -6,13 +6,18 @@ DEPS = [
'goma',
'recipe_engine/platform',
'recipe_engine/properties',
- 'recipe_engine/raw_io',
+ 'recipe_engine/step',
]
def RunSteps(api):
api.goma.ensure_goma()
api.goma.start(env={})
# build something using goma.
+ api.step('echo goma jobs',
+ ['echo', str(api.goma.recommended_goma_jobs)])
+ api.step('echo goma jobs second',
+ ['echo', str(api.goma.recommended_goma_jobs)])
+
api.goma.stop(
ninja_log_outdir=api.properties.get('ninja_log_outdir'),
ninja_log_compiler=api.properties.get('ninja_log_compiler'),

Powered by Google App Engine
This is Rietveld 408576698