Flutter Engine
The Flutter Engine
|
Public Member Functions | |
def | __init__ (self) |
def | __enter__ (self) |
def | __exit__ (self, exception_type, exception_value, traceback) |
def | filter_line (self, line) |
def | sanity_check (self) |
def | print_debug_diagnostics (self) |
Public Attributes | |
warmup_time | |
Locks down and monitors hardware for benchmarking. This is a common base for classes that can control the specific hardware we are running on. Its purpose is to lock the hardware into a constant benchmarking mode for the duration of a 'with' block. e.g.: with hardware: run_benchmark() While benchmarking, the caller must call sanity_check() frequently to verify the hardware state has not changed.
Definition at line 8 of file _hardware.py.
def tools.skpbench._hardware.Hardware.__init__ | ( | self | ) |
Reimplemented in tools.skpbench._hardware_android.HardwareAndroid, tools.skpbench._hardware_nexus_6p.HardwareNexus6P, tools.skpbench._hardware_pixel.HardwarePixel, tools.skpbench._hardware_pixel2.HardwarePixel2, and tools.skpbench._hardware_pixel_c.HardwarePixelC.
Definition at line 23 of file _hardware.py.
def tools.skpbench._hardware.Hardware.__enter__ | ( | self | ) |
Reimplemented in tools.skpbench._hardware_android.HardwareAndroid, tools.skpbench._hardware_nexus_6p.HardwareNexus6P, tools.skpbench._hardware_pixel.HardwarePixel, tools.skpbench._hardware_pixel2.HardwarePixel2, and tools.skpbench._hardware_pixel_c.HardwarePixelC.
Definition at line 26 of file _hardware.py.
def tools.skpbench._hardware.Hardware.__exit__ | ( | self, | |
exception_type, | |||
exception_value, | |||
traceback | |||
) |
Reimplemented in tools.skpbench._hardware_android.HardwareAndroid.
Definition at line 29 of file _hardware.py.
def tools.skpbench._hardware.Hardware.filter_line | ( | self, | |
line | |||
) |
Returns False if the provided output line can be suppressed.
Reimplemented in tools.skpbench._hardware_pixel_c.HardwarePixelC.
Definition at line 32 of file _hardware.py.
def tools.skpbench._hardware.Hardware.print_debug_diagnostics | ( | self | ) |
Prints any info that may help improve or debug hardware monitoring.
Reimplemented in tools.skpbench._hardware_android.HardwareAndroid.
Definition at line 40 of file _hardware.py.
def tools.skpbench._hardware.Hardware.sanity_check | ( | self | ) |
Raises a HardwareException if any hardware state is not as expected.
Reimplemented in tools.skpbench._hardware_android.HardwareAndroid, tools.skpbench._hardware_nexus_6p.HardwareNexus6P, tools.skpbench._hardware_pixel.HardwarePixel, tools.skpbench._hardware_pixel2.HardwarePixel2, and tools.skpbench._hardware_pixel_c.HardwarePixelC.
Definition at line 36 of file _hardware.py.
tools.skpbench._hardware.Hardware.warmup_time |
Definition at line 24 of file _hardware.py.