Commit ae79184f authored by nednguyen@google.com's avatar nednguyen@google.com

Update smoothness_controller to use results.AddValue(...)

BUG=391943
TBR=nduca@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282131 0039d316-1c4b-4281-b951-d872f2087c98
parent 5b7f426b
...@@ -9,6 +9,7 @@ from telemetry.page import page_measurement ...@@ -9,6 +9,7 @@ from telemetry.page import page_measurement
from telemetry.page.actions import action_runner from telemetry.page.actions import action_runner
from telemetry.web_perf import timeline_interaction_record as tir_module from telemetry.web_perf import timeline_interaction_record as tir_module
from telemetry.web_perf.metrics import smoothness from telemetry.web_perf.metrics import smoothness
from telemetry.value import scalar
RUN_SMOOTH_ACTIONS = 'RunSmoothAllActions' RUN_SMOOTH_ACTIONS = 'RunSmoothAllActions'
...@@ -95,7 +96,8 @@ class SmoothnessController(object): ...@@ -95,7 +96,8 @@ class SmoothnessController(object):
for r in tab.browser.platform.GetRawDisplayFrameRateMeasurements(): for r in tab.browser.platform.GetRawDisplayFrameRateMeasurements():
if r.value is None: if r.value is None:
raise MissingDisplayFrameRateError(r.name) raise MissingDisplayFrameRateError(r.name)
results.Add(r.name, r.unit, r.value) results.AddValue(scalar.ScalarValue(
results.current_page, r.name, r.unit, r.value))
def CleanUp(self, tab): def CleanUp(self, tab):
if tab.browser.platform.IsRawDisplayFrameRateSupported(): if tab.browser.platform.IsRawDisplayFrameRateSupported():
......
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