aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skpbench/skpbench.py
diff options
context:
space:
mode:
authorGravatar csmartdalton <csmartdalton@google.com>2016-10-11 12:15:13 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-10-11 12:15:13 -0700
commit2a9610171b24aca1d1dce085b956572c7b57f183 (patch)
tree20d2da220bb1560afa705bba3d28d62a47accc5c /tools/skpbench/skpbench.py
parentbbdf45e34ffdd6a873033d393de433dca8931c04 (diff)
skpbench: add debug prints for thermal trip points
Prints thermal trip points that have been exceeded when a HardwareException is raised, and verbosity is set to debug. This can help us correlate thermal trip points with throttling and detect future throttling before it occurs. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2408893002 Review-Url: https://codereview.chromium.org/2408893002
Diffstat (limited to 'tools/skpbench/skpbench.py')
-rwxr-xr-xtools/skpbench/skpbench.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/skpbench/skpbench.py b/tools/skpbench/skpbench.py
index 6bf39750a4..932d8d0461 100755
--- a/tools/skpbench/skpbench.py
+++ b/tools/skpbench/skpbench.py
@@ -230,6 +230,8 @@ def run_benchmarks(configs, skps, hardware):
skpbench.best_result))
except HardwareException as exception:
+ if FLAGS.verbosity >= 5:
+ hardware.print_debug_diagnostics()
skpbench.terminate()
naptime = max(hardware.kick_in_time, exception.sleeptime)
if FLAGS.verbosity >= 1: