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
diff --git a/tools/skpbench/_hardware.py b/tools/skpbench/_hardware.py
index f1c8c26..9c929c4 100644
--- a/tools/skpbench/_hardware.py
+++ b/tools/skpbench/_hardware.py
@@ -33,6 +33,10 @@
"""Raises a HardwareException if any hardware state is not as expected."""
pass
+ def print_debug_diagnostics(self):
+ """Prints any info that may help improve or debug hardware monitoring."""
+ pass
+
def sleep(self, sleeptime):
"""Puts the hardware into a resting state for a fixed amount of time."""
time.sleep(sleeptime)