Index: components/data_reduction_proxy/proto/pageload_metrics.proto |
diff --git a/components/data_reduction_proxy/proto/pageload_metrics.proto b/components/data_reduction_proxy/proto/pageload_metrics.proto |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b6240cfcdd894a80dde55b0bfde98753c2feea0e |
--- /dev/null |
+++ b/components/data_reduction_proxy/proto/pageload_metrics.proto |
@@ -0,0 +1,49 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+syntax = "proto2"; |
+ |
+option optimize_for = LITE_RUNTIME; |
+ |
+import "client_config.proto"; |
+ |
+package data_reduction_proxy; |
+ |
+// Request message to record metrics for one or more pageloads. |
+message RecordPageloadMetricsRequest { |
+ // The pageload metrics to record. |
+ repeated PageloadMetrics pageloads = 1; |
+} |
+ |
+// Metrics for a single pageload. |
+message PageloadMetrics { |
+ // The session key used to load the page. |
+ optional string session_key = 1; |
+ // The time at which the first request of the pageload was made, according to |
+ // the client's clock. |
+ optional Timestamp first_request_time = 2; |
+ // The time at which the last request of the pageload was made, according to |
+ // the client's clock. |
+ optional Timestamp last_request_time = 3; |
+ // The URL of the main page request. |
+ optional string first_request_url = 4; |
+ // The URL of the last request. |
+ optional string last_request_url = 5; |
+ |
+ // Time to first contentful paint. |
+ optional Duration time_to_first_contentful_paint = 6; |
+ // Time to first image paint. |
+ optional Duration time_to_first_image_paint = 7; |
+ // Time to first byte. |
+ optional Duration time_to_first_byte = 8; |
+ // Time to onLoad event. |
+ optional Duration page_load_time = 9; |
+ |
+ // The sum of original-content-length values, over resources that were not |
+ // loaded from browser cache. |
+ optional int32 original_page_size_bytes = 10; |
+ // The sum of (compressed) content-length, over resources that were not loaded |
+ // from browser cache. |
+ optional int32 compressed_page_size_bytes = 11; |
+} |