mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 19:32:34 +01:00
Fix for FpsProcessor logic in utils module
- Add requirement on filtered_vsyncs_to_compose for total_vsync metric - Remove misleading comment in class description
This commit is contained in:
@@ -16,10 +16,10 @@
|
|||||||
|
|
||||||
class FpsProcessor(object):
|
class FpsProcessor(object):
|
||||||
"""
|
"""
|
||||||
Provide common object for processing surfaceFlinger output for frame
|
Provides common object for processing surfaceFlinger output for frame
|
||||||
statistics.
|
statistics.
|
||||||
|
|
||||||
This processor adds four metrics to the results:
|
This processor returns the four frame statistics below:
|
||||||
|
|
||||||
:FPS: Frames Per Second. This is the frame rate of the workload.
|
:FPS: Frames Per Second. This is the frame rate of the workload.
|
||||||
:frames: The total number of frames rendered during the execution of
|
:frames: The total number of frames rendered during the execution of
|
||||||
@@ -77,6 +77,7 @@ class FpsProcessor(object):
|
|||||||
|
|
||||||
janks = self._calc_janks(filtered_vsyncs_to_compose)
|
janks = self._calc_janks(filtered_vsyncs_to_compose)
|
||||||
not_at_vsync = self._calc_not_at_vsync(vsyncs_to_compose)
|
not_at_vsync = self._calc_not_at_vsync(vsyncs_to_compose)
|
||||||
|
|
||||||
metrics = (fps, frame_count, janks, not_at_vsync)
|
metrics = (fps, frame_count, janks, not_at_vsync)
|
||||||
|
|
||||||
return per_frame_fps, metrics
|
return per_frame_fps, metrics
|
||||||
|
Reference in New Issue
Block a user