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

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

Issue 23545023: [Telemetry] Add 'name' attribute for pages, which allows for more human-readable printing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Forgot to update the unitttests :( Created 7 years, 3 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
Index: tools/perf/measurements/blink_perf.py
diff --git a/tools/perf/measurements/blink_perf.py b/tools/perf/measurements/blink_perf.py
index f21cf98fb8431cb10665ba326d2fd1e6f39be697..a2ab366d7054823224d2adfdf9e3b2c3689ae49e 100644
--- a/tools/perf/measurements/blink_perf.py
+++ b/tools/perf/measurements/blink_perf.py
@@ -97,7 +97,7 @@ class BlinkPerf(page_measurement.PageMeasurement):
parts = line.split()
values = [float(v.replace(',', '')) for v in parts[1:-1]]
units = parts[-1]
- metric = page.display_url.split('.')[0].replace('/', '_')
+ metric = page.display_name.split('.')[0].replace('/', '_')
results.Add(metric, units, values)
break

Powered by Google App Engine
This is Rietveld 408576698