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

Unified Diff: tools/perf/metrics/network.py

Issue 379403002: Update network 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/metrics/network.py
diff --git a/tools/perf/metrics/network.py b/tools/perf/metrics/network.py
index f9d4ffb32b8f2e0d46d7ec44c4086818b756ef1b..8556449d27d9012a0cf7c2aa7b5b89856d23cf4c 100644
--- a/tools/perf/metrics/network.py
+++ b/tools/perf/metrics/network.py
@@ -180,8 +180,9 @@ class NetworkMetric(Metric):
else:
original_content_length += cl
if self.add_result_for_resource:
- results.Add(
- 'resource_content_length_' + resource_signature, 'bytes', cl)
+ results.AddValue(scalar.ScalarValue(
+ results.current_page,
+ 'resource_content_length_' + resource_signature, 'bytes', cl))
content_length += cl
results.AddValue(scalar.ScalarValue(
« 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