| |
- __builtin__.object
-
- Platform
class Platform(__builtin__.object) |
|
The platform that the target browser is running on.
Provides a limited interface to interact with the platform itself, where
possible. It's important to note that platforms may not provide a specific
API, so check with IsFooBar() for availability. |
|
Methods defined here:
- CanMonitorThermalThrottling(self)
- Platforms may be able to detect thermal throttling.
Some fan-less computers go into a reduced performance mode when their heat
exceeds a certain threshold. Performance tests in particular should use this
API to detect if this has happened and interpret results accordingly.
- GetOSName(self)
- Returns a string description of the Platform OS.
Examples: WIN, MAC, LINUX, CHROMEOS
- GetOSVersionName(self)
- Returns a string description of the Platform OS version.
Examples: VISTA, WIN7, LION, MOUNTAINLION
- GetRawDisplayFrameRateMeasurements(self)
- Returns a list of RawDisplayFrameRateMeasurement.
- HasBeenThermallyThrottled(self)
- Returns True if the device has been thermally throttled.
- IsRawDisplayFrameRateSupported(self)
- Platforms may be able to collect GL surface stats.
- IsThermallyThrottled(self)
- Returns True if the device is currently thermally throttled.
- SetFullPerformanceModeEnabled(self, enabled)
- Platforms may tweak their CPU governor, system status, etc.
Most platforms can operate in a battery saving mode. While good for battery
life, this can cause confusing performance results and add noise. Turning
full performance mode on disables these features, which is useful for
performance testing.
- StartRawDisplayFrameRateMeasurement(self)
- Start measuring GL surface stats.
- StopRawDisplayFrameRateMeasurement(self)
- Stop measuring GL surface stats.
- __init__(self, platform_backend)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- RawDisplayFrameRateMeasurement = <class 'telemetry.core.platform.RawDisplayFrameRateMeasurement'>
| |