Commit 7b86e05b authored by nednguyen@google.com's avatar nednguyen@google.com

Convert results.Add to results.AddValue for speedindex metrics.

BUG=383153

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277833 0039d316-1c4b-4281-b951-d872f2087c98
parent 6531069e
......@@ -6,6 +6,7 @@ import collections
from metrics import Metric
from telemetry.core import bitmap
from telemetry.value import scalar
class SpeedIndexMetric(Metric):
......@@ -51,7 +52,8 @@ class SpeedIndexMetric(Metric):
index = self._impl.CalculateSpeedIndex(tab)
# Release the tab so that it can be disconnected.
self._impl = None
results.Add('speed_index', 'ms', index, chart_name=chart_name)
results.AddValue(scalar.ScalarValue(
results.current_page, '%s.speed_index' % chart_name, 'ms', index))
def IsFinished(self, tab):
"""Decide whether the timeline recording should be stopped.
......
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