Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: tools/perf/measurements/record_per_area.py

Issue 387753002: Update record_per_area to use results.AddValue(...). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/record_per_area.py
diff --git a/tools/perf/measurements/record_per_area.py b/tools/perf/measurements/record_per_area.py
index 5370796a3adc3f3bdf111fe51a8565cdaf9406d9..a55f0250145e609f9848f7ee0a53f43f64fa7aa2 100644
--- a/tools/perf/measurements/record_per_area.py
+++ b/tools/perf/measurements/record_per_area.py
@@ -6,6 +6,8 @@ import time
from measurements import smoothness
from telemetry.page import page_measurement
+from telemetry.value import scalar
+
class RecordPerArea(page_measurement.PageMeasurement):
def __init__(self):
@@ -57,5 +59,6 @@ class RecordPerArea(page_measurement.PageMeasurement):
area = width * height
time_ms = data['time_ms']
- results.Add('area_%07d_%dx%d' % (area, width, height), 'ms', time_ms)
-
+ results.AddValue(scalar.ScalarValue(
+ results.current_page, 'area_%07d_%dx%d' % (area, width, height),
+ 'ms', time_ms))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698