aboutsummaryrefslogtreecommitdiff
path: root/crosperf/experiment_status.py
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2015-12-10 10:40:27 -0800
committerchrome-bot <chrome-bot@chromium.org>2015-12-10 20:35:07 +0000
commit661dae3250c449e8fc4184d085557532e4511023 (patch)
treeab3a7874032fdc9a4c64ff8c910a97d4e88bbb3b /crosperf/experiment_status.py
parent0009415847e04be4670c025e1b475adc7de23cc8 (diff)
downloadtoolchain-utils-661dae3250c449e8fc4184d085557532e4511023.tar.gz
crosperf: clean lint warning.
BUG=chromium:567921 TEST=experiment_status.py is lint clean. Change-Id: I58553bfe9990b6b8e93e3aeee3daf7e634a96ac8 Reviewed-on: https://chrome-internal-review.googlesource.com/241570 Commit-Ready: Yunlian Jiang <yunlian@google.com> Tested-by: Yunlian Jiang <yunlian@google.com> Reviewed-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'crosperf/experiment_status.py')
-rw-r--r--crosperf/experiment_status.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/crosperf/experiment_status.py b/crosperf/experiment_status.py
index 67b72a1f..d7133084 100644
--- a/crosperf/experiment_status.py
+++ b/crosperf/experiment_status.py
@@ -1,9 +1,9 @@
-#!/usr/bin/python
-
# Copyright 2011 Google Inc. All Rights Reserved.
"""The class to show the banner."""
+from __future__ import print_function
+
import datetime
import time
@@ -93,7 +93,7 @@ class ExperimentStatus(object):
status_strings = []
for key, val in status_bins.items():
- if (key == "RUNNING" or self.experiment.log_level == "verbose"):
+ if key == "RUNNING" or self.experiment.log_level == "verbose":
status_strings.append("%s: %s" %
(key, self._GetNamesAndIterations(val)))
else:
@@ -105,12 +105,12 @@ class ExperimentStatus(object):
if (self.experiment.schedv2() is None and
self.experiment.log_level == "verbose"):
# Add the machine manager status.
- thread_status = thread_status_format.format(
+ thread_status = thread_status_format.format(
self.experiment.machine_manager.AsString())
elif self.experiment.schedv2():
# In schedv2 mode, we always print out thread status.
- thread_status = thread_status_format.format(
- self.experiment.schedv2().threads_status_as_string())
+ thread_status = thread_status_format.format(
+ self.experiment.schedv2().threads_status_as_string())
result = "{}{}".format(thread_status, "\n".join(status_strings))
@@ -144,9 +144,8 @@ class ExperimentStatus(object):
benchmark_iterations[benchmark_name].append(benchmark_run.iteration)
for key, val in benchmark_iterations.items():
val.sort()
- iterations = ",".join(map(str,val))
+ iterations = ",".join(map(str, val))
strings.append("{} [{}]".format(key, iterations))
output += " " + label + ": " + ", ".join(strings) + "\n"
return " %s \n%s" % (len(benchmark_runs), output)
-