mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-22 12:58:36 +00:00
fps: move VSYNC_INTERVAL into utils
It is not anything to do with instrument, but a generic ocnstant, and this way it can be used by the other parts of the code line.
This commit is contained in:
parent
0f57dee6bf
commit
3feb702898
@ -39,10 +39,9 @@ from wlauto.instrumentation import instrument_is_installed
|
|||||||
from wlauto.exceptions import (InstrumentError, WorkerThreadError, ConfigError,
|
from wlauto.exceptions import (InstrumentError, WorkerThreadError, ConfigError,
|
||||||
DeviceNotRespondingError, TimeoutError)
|
DeviceNotRespondingError, TimeoutError)
|
||||||
from wlauto.utils.types import boolean, numeric
|
from wlauto.utils.types import boolean, numeric
|
||||||
from wlauto.utils.fps import FpsProcessor, SurfaceFlingerFrame, GfxInfoFrame, GFXINFO_EXEMPT
|
from wlauto.utils.fps import (FpsProcessor, SurfaceFlingerFrame, GfxInfoFrame, GFXINFO_EXEMPT,
|
||||||
|
VSYNC_INTERVAL)
|
||||||
|
|
||||||
|
|
||||||
VSYNC_INTERVAL = 16666667
|
|
||||||
PAUSE_LATENCY = 20
|
PAUSE_LATENCY = 20
|
||||||
EPSYLON = 0.0001
|
EPSYLON = 0.0001
|
||||||
|
|
||||||
|
@ -29,6 +29,8 @@ GfxInfoFrame = collections.namedtuple('GfxInfoFrame', 'Flags IntendedVsync Vsync
|
|||||||
# Android M: WindowLayoutChanged | SurfaceCanvas
|
# Android M: WindowLayoutChanged | SurfaceCanvas
|
||||||
GFXINFO_EXEMPT = 1 | 4
|
GFXINFO_EXEMPT = 1 | 4
|
||||||
|
|
||||||
|
VSYNC_INTERVAL = 16666667
|
||||||
|
|
||||||
|
|
||||||
class FpsProcessor(object):
|
class FpsProcessor(object):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user