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

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: Insert code that takes a snapshot before each test run Created 4 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
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..46b9ce62128e4f26c58b469c11a5598b370c5894 100644
--- a/scripts/slave/recipe_modules/auto_bisect/bisector.py
+++ b/scripts/slave/recipe_modules/auto_bisect/bisector.py
@@ -666,6 +666,16 @@ class Bisector(object):
self.api.m.step('Debug Info', [])
self.api.m.step.active_result.presentation.logs['Debug Info'] = lines
+ def print_result_debug_info_with_cpu_snapshot(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(revision.snapshot)
+ self.api.m.step('Debug Info with CPU Snapshot', [])
+ self.api.m.step.active_result.presentation.\
+ logs['Debug Info with CPU Snapshot'] = lines
RobertoCN 2016/06/03 18:01:42 nit: alignment. I would break just after `logs[` t
+
def post_result(self, halt_on_failure=False):
"""Posts bisect results to Perf Dashboard."""
self.api.m.perf_dashboard.set_default_config()

Powered by Google App Engine
This is Rietveld 408576698