diff options
author | Martin Peres <martin.peres@linux.intel.com> | 2016-01-27 13:18:09 +0200 |
---|---|---|
committer | Martin Peres <martin.peres@linux.intel.com> | 2016-01-27 19:35:18 +0200 |
commit | 78defa3cb118345b7167c9353cfe6d3e45cf66b1 (patch) | |
tree | f848c0276809cdcdbd7249112f771c0d4814bd79 | |
parent | b8a6ca9183b110156ba651ed617f5b6e27366614 (diff) |
smart_ezbench: make sure we schedule improvements
-rw-r--r-- | utils/ezbench.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/ezbench.py b/utils/ezbench.py index f76ff59..fe8713e 100644 --- a/utils/ezbench.py +++ b/utils/ezbench.py @@ -716,11 +716,17 @@ class SmartEzbench: # Only schedule the commit with the most important perf change to # speed up the bisecting process tasks_sorted = sorted(tasks, key=lambda t: t[0]) - if len(tasks_sorted) > 0: + while len(tasks_sorted) > 0: commit = tasks_sorted[-1][1] + self.__log(Criticality.DD, "Add all the tasks using commit {}".format(commit)) + added = 0 for t in tasks_sorted: if t[1] == commit: - self.force_benchmark_rounds(t[1], t[2], t[3]) + added += self.force_benchmark_rounds(t[1], t[2], t[3]) + if added > 0: + break + del tasks_sorted[-1] + self.__log(Criticality.DD, "No work scheduled using commit {}, try another one".format(commit)) # Report parsing class Benchmark: |