Home
last modified time | relevance | path

Searched refs:frame_distribution (Results 1 – 2 of 2) sorted by relevance

/external/chromium-trace/catapult/telemetry/telemetry/web_perf/metrics/
Dwebrtc_rendering_stats.py29 rendering_length_error=None, fps=None, frame_distribution=None): argument
39 self.frame_distribution = frame_distribution
144 frame_distribution = {}
146 ticks_so_far = frame_distribution.setdefault(ticks, 0)
147 frame_distribution[ticks] = ticks_so_far + 1
148 return frame_distribution
150 def _GetFpsFromCadence(self, frame_distribution): argument
163 number_frames = sum(frame_distribution.values())
164 number_vsyncs = sum([ticks * frame_distribution[ticks]
165 for ticks in frame_distribution])
[all …]
Dwebrtc_rendering_stats_unittest.py152 frame_distribution = {1: 2, 2: 2, 3: 3}
156 stats_parser._GetFpsFromCadence(frame_distribution))
159 frame_distribution = {1: 2, 2: 2, 3: 569, 6: 1}
163 stats_parser._GetFrozenFramesReports(frame_distribution))
208 frame_distribution = {1: 2, 2: 2, 3: 569, 6: 1}
212 stats_parser._GetFreezingScore(frame_distribution))
215 frame_distribution = {1: 2, 2: 2, 3: 2, 8:100}
217 self.assertEqual(0.0, stats_parser._GetFreezingScore(frame_distribution))
242 frame_distribution=expected_frame_dist)
256 self.assertEqual(expected_stats.frame_distribution,
[all …]