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

Unified Diff: telemetry/telemetry/internal/platform/platform_backend.py

Issue 2876843002: Simulate interactivity boost for simulated user input events
Patch Set: Created 3 years, 7 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
Index: telemetry/telemetry/internal/platform/platform_backend.py
diff --git a/telemetry/telemetry/internal/platform/platform_backend.py b/telemetry/telemetry/internal/platform/platform_backend.py
index d099940fc7853de49911aa7d997253cb492eb05a..4e24789e0d0d67c163bc86a4b09a14547bf04dff 100644
--- a/telemetry/telemetry/internal/platform/platform_backend.py
+++ b/telemetry/telemetry/internal/platform/platform_backend.py
@@ -305,3 +305,17 @@ class PlatformBackend(object):
def WaitForBatteryTemperature(self, temp):
pass
+
+ def SetInteractivityBoost(self, enable):
+ """On some platforms (e.g. ChromeOS), the kernel provides a frequency boost
+ to the CPUs when an input is received (e.g., keypress, touchpad event).
+ Page actions which simulate a user input therefore need to trigger the
+ same boost in order to accurately simulate normal behaviour.
+
+ This should be overridden by platforms which provide a frequency boost
+ in response to user input.
+
+ Args:
+ enable: turn boost on or off
+ """
+ pass
« no previous file with comments | « telemetry/telemetry/internal/platform/cros_platform_backend.py ('k') | telemetry/telemetry/internal/util/repeating_timer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698