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

Unified Diff: scripts/slave/recipe_modules/auto_bisect/bisector.py

Issue 2031883002: Initiate the script that takes a snapshot of CPU usage (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Fix styling inconsistency and bug Created 4 years, 6 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/recipe_modules/auto_bisect/local_bisect.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/auto_bisect/bisector.py
diff --git a/scripts/slave/recipe_modules/auto_bisect/bisector.py b/scripts/slave/recipe_modules/auto_bisect/bisector.py
index 23c69450c4cf8787885a1edb03bf6ff6b2d079a0..d387a301c6b321197b51cc56a98bad0fdb4676d2 100644
--- a/scripts/slave/recipe_modules/auto_bisect/bisector.py
+++ b/scripts/slave/recipe_modules/auto_bisect/bisector.py
@@ -666,6 +666,15 @@ class Bisector(object):
self.api.m.step('Debug Info', [])
self.api.m.step.active_result.presentation.logs['Debug Info'] = lines
+ def print_cpu(self):
+ """Prints extra debug info with CPU snapshot at the end of the bisect process."""
+ lines = self._results_debug_message().splitlines()
+ for revision in self.revisions:
+ lines.append(str(revision.snapshot))
+ step_name = 'Debug Info with CPU Snapshot'
+ self.api.m.step(step_name, [])
+ self.api.m.step.active_result.presentation.logs[step_name] = lines
+
def post_result(self, halt_on_failure=False):
"""Posts bisect results to Perf Dashboard."""
self.api.m.perf_dashboard.set_default_config()
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/auto_bisect/local_bisect.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698