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

Unified Diff: tools/android/loading/report.py

Issue 2021093002: clovis: Report the number and cost of DNS requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « tools/android/loading/metrics_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/loading/report.py
diff --git a/tools/android/loading/report.py b/tools/android/loading/report.py
index 21ca1e8ce85cdd4706ff6a4c47a55f0fc3c1bdc5..d8416eb107b883034979c76dffc7c1a7dca7a771 100644
--- a/tools/android/loading/report.py
+++ b/tools/android/loading/report.py
@@ -107,6 +107,7 @@ class LoadingReport(object):
requests[0], dependencies_lens, self.trace)
self._requests = len(requests)
self._preloaded_requests = len(preloaded_requests)
+ self._dns_requests, self._dns_cost_msec = metrics.DnsRequestsAndCost(trace)
self._user_lens_reports = {}
first_text_paint_lens = FirstTextPaintLens(self.trace)
@@ -144,7 +145,9 @@ class LoadingReport(object):
'plt_ms': self._load_end_msec - self._navigation_start_msec,
'requests': self._requests,
'preloaded_requests': self._preloaded_requests,
- 'transfer_size': self._transfer_size}
+ 'transfer_size': self._transfer_size,
+ 'dns_requests': self._dns_requests,
+ 'dns_cost_ms': self._dns_cost_msec}
for user_lens_type, user_lens_report in self._user_lens_reports.iteritems():
for key, value in user_lens_report.GenerateReport().iteritems():
« no previous file with comments | « tools/android/loading/metrics_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698