summaryrefslogtreecommitdiffstats
path: root/tools/chrome_proxy
diff options
context:
space:
mode:
Diffstat (limited to 'tools/chrome_proxy')
-rw-r--r--tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py10
-rw-r--r--tools/chrome_proxy/live_tests/chrome_proxy_metrics.py10
2 files changed, 20 insertions, 0 deletions
diff --git a/tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py b/tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py
index 0bc0f3a..669168f 100644
--- a/tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py
@@ -124,6 +124,16 @@ class ChromeProxyMetric(network_metrics.NetworkMetric):
results.current_page, 'request_start', 'ms', request_start,
important=False))
+ response_start = (float(response_start) - navigation_start)
+ results.AddValue(scalar.ScalarValue(
+ results.current_page, 'response_start', 'ms', response_start,
+ important=False))
+
+ response_end = (float(response_end) - navigation_start)
+ results.AddValue(scalar.ScalarValue(
+ results.current_page, 'response_end', 'ms', response_end,
+ important=False))
+
# Phase measurements in milliseconds.
domain_lookup_duration = (float(domain_lookup_end) - domain_lookup_start)
results.AddValue(scalar.ScalarValue(
diff --git a/tools/chrome_proxy/live_tests/chrome_proxy_metrics.py b/tools/chrome_proxy/live_tests/chrome_proxy_metrics.py
index 79e4f50..e456a00 100644
--- a/tools/chrome_proxy/live_tests/chrome_proxy_metrics.py
+++ b/tools/chrome_proxy/live_tests/chrome_proxy_metrics.py
@@ -104,6 +104,16 @@ class ChromeProxyMetric(network_metrics.NetworkMetric):
results.current_page, 'request_start', 'ms', request_start,
important=False))
+ response_start = (float(response_start) - navigation_start)
+ results.AddValue(scalar.ScalarValue(
+ results.current_page, 'response_start', 'ms', response_start,
+ important=False))
+
+ response_end = (float(response_end) - navigation_start)
+ results.AddValue(scalar.ScalarValue(
+ results.current_page, 'response_end', 'ms', response_end,
+ important=False))
+
# Phase measurements in milliseconds.
domain_lookup_duration = (float(domain_lookup_end) - domain_lookup_start)
results.AddValue(scalar.ScalarValue(