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

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: change expectation 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
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..5a5f3a53d348d8bb4689b4d157ca66896e3bd092 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):
prasadv 2016/06/07 22:00:49 can we rename this method name shorter? "print_cpu
+ """Prints extra debug info with CPU snapshot at the
prasadv 2016/06/07 22:00:49 Function docstring should be of single line summar
+ end of the bisect process."""
+ lines = self._results_debug_message().splitlines()
+ for revision in self.revisions:
+ lines.append(str(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
prasadv 2016/06/07 22:00:49 Need 4 space indentation. Or otherwise declare st
+
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