Commit 648252b0 authored by ernstm@chromium.org's avatar ernstm@chromium.org

telemetry: Add unit 'score' to 'mostly_smooth' metric.

The mostly_smooth metric has no unit and therefore shows lower values as an
improvement in results.html. Adding 'score' as the unit to fix this.

R=fmeawad@chromium.org
BUG=

Review URL: https://codereview.chromium.org/124103002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244057 0039d316-1c4b-4281-b951-d872f2087c98
parent 3f19db7c
......@@ -92,7 +92,7 @@ class SmoothnessMetric(Metric):
# Are we hitting 60 fps for 95 percent of all frames?
# We use 19ms as a somewhat looser threshold, instead of 1000.0/60.0.
percentile_95 = statistics.Percentile(self._stats.frame_times, 95.0)
results.Add('mostly_smooth', '', 1.0 if percentile_95 < 19.0 else 0.0)
results.Add('mostly_smooth', 'score', 1.0 if percentile_95 < 19.0 else 0.0)
if tab.browser.platform.IsRawDisplayFrameRateSupported():
for r in tab.browser.platform.GetRawDisplayFrameRateMeasurements():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment