Chromium Code Reviews| Index: scripts/slave/recipe_modules/auto_bisect/revision_state.py |
| diff --git a/scripts/slave/recipe_modules/auto_bisect/revision_state.py b/scripts/slave/recipe_modules/auto_bisect/revision_state.py |
| index f6a7d0194b21499f1ecda3ef75b22d95443d9758..05db9a6d70a53626bdcbb31ffe731f5b7ba92475 100644 |
| --- a/scripts/slave/recipe_modules/auto_bisect/revision_state.py |
| +++ b/scripts/slave/recipe_modules/auto_bisect/revision_state.py |
| @@ -75,6 +75,7 @@ class RevisionState(object): |
| self.commit_hash = str(commit_hash) |
| self._rev_str = None |
| self.base_revision = base_revision |
| + self.snapshot = [] |
| if self.base_revision: |
| assert self.base_revision.deps_file_contents |
| self.needs_patch = True |
| @@ -183,7 +184,7 @@ class RevisionState(object): |
| return self.bisector.api.m.gitiles.download_file( |
| repository_url=url, file_path=file_name, branch=branch) |
| except TypeError: |
| - print 'Could not read content for %s/%s/%s' % (url, file_name, branch) |
| + print 'Could not read content for %s/%s/%s' % (url, file_name, branch) |
| return None |
| def read_deps(self, recipe_tester_name): |
| @@ -490,6 +491,12 @@ class RevisionState(object): |
| skip_download = self.bisector.last_tested_revision == self |
| self.bisector.last_tested_revision = self |
| overrides = perf_test_properties['properties'] |
| + snapshot_result = api.m.step('Take a Snapshot of CPU', |
| + ['python',api.resource('cpu_usage.py')], |
|
RobertoCN
2016/06/07 21:44:29
Alignment. I suggest
... = api.m.step(
'Take a
|
| + stdout=api.m.json.output()) |
| + process_list = snapshot_result.stdout |
| + self.snapshot = process_list |
| + api.m.step.active_result.presentation.logs['CPU snapshot'] = process_list |
|
RobertoCN
2016/06/07 21:44:29
You need to make sure that process_list is a list
|
| api.run_local_test_run(overrides, skip_download=skip_download) |
| else: |
| step_name = 'Triggering test job for ' + self.commit_hash |