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

Unified Diff: tools/skpbench/skpbench.py

Issue 2415033002: skpbench: suppot Nexus 6P (Closed)
Patch Set: skpbench: suppot Nexus 6P Created 4 years, 2 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
« no previous file with comments | « tools/skpbench/_hardware_nexus_6p.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skpbench/skpbench.py
diff --git a/tools/skpbench/skpbench.py b/tools/skpbench/skpbench.py
index 9598162693b250087faeca99457a7e196ad312d9..3e5b45138fc4e06001b8c87e7ba6c57ba510ba9f 100755
--- a/tools/skpbench/skpbench.py
+++ b/tools/skpbench/skpbench.py
@@ -124,7 +124,7 @@ class SKPBench:
def run_warmup(cls, warmup_time):
if not warmup_time:
return
- print('running %i second warmup...' % warmup_time)
+ print('running %i second warmup...' % warmup_time, file=sys.stderr)
commandline = cls.ARGV + ['--duration', str(warmup_time * 1000),
'--config', 'gpu',
'--skp', 'warmup']
@@ -180,7 +180,7 @@ class SKPBench:
hardware.sanity_check()
self._process_result(result)
else:
- print(message.value)
+ print(message.value, file=sys.stderr)
sys.stdout.flush()
continue
if message.message == Message.POLL_HARDWARE:
@@ -252,14 +252,16 @@ def run_benchmarks(configs, skps, hardware):
skpbench.best_result))
except HardwareException as exception:
+ skpbench.terminate()
if FLAGS.verbosity >= 5:
hardware.print_debug_diagnostics()
- skpbench.terminate()
if FLAGS.verbosity >= 1:
print("%s; taking a %i second nap..." %
(exception.message, exception.sleeptime), file=sys.stderr)
benches.appendleft(benchargs) # retry the same bench next time.
hardware.sleep(exception.sleeptime)
+ if FLAGS.verbosity >= 5:
+ hardware.print_debug_diagnostics()
SKPBench.run_warmup(hardware.warmup_time)
@@ -275,6 +277,9 @@ def main():
if model == 'Pixel C':
from _hardware_pixel_c import HardwarePixelC
hardware = HardwarePixelC(adb)
+ elif model == 'Nexus 6P':
+ from _hardware_nexus_6p import HardwareNexus6P
+ hardware = HardwareNexus6P(adb)
else:
from _hardware_android import HardwareAndroid
print("WARNING: %s: don't know how to monitor this hardware; results "
« no previous file with comments | « tools/skpbench/_hardware_nexus_6p.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698