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

Unified Diff: components/data_reduction_proxy/proto/pageload_metrics.proto

Issue 2010253003: Sending a data saver Pageload metrics pingback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « components/data_reduction_proxy/proto/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+}
« no previous file with comments | « components/data_reduction_proxy/proto/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698