Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 syntax = "proto2"; | 5 syntax = "proto2"; |
| 6 | 6 |
| 7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
| 8 | 8 |
| 9 import "client_config.proto"; | 9 import "client_config.proto"; |
| 10 | 10 |
| 11 package data_reduction_proxy; | 11 package data_reduction_proxy; |
| 12 | 12 |
| 13 // Request message to record metrics for one or more pageloads. | 13 // Request message to record metrics for one or more pageloads. |
| 14 message RecordPageloadMetricsRequest { | 14 message RecordPageloadMetricsRequest { |
| 15 // The pageload metrics to record. | 15 // The pageload metrics to record. |
| 16 repeated PageloadMetrics pageloads = 1; | 16 repeated PageloadMetrics pageloads = 1; |
| 17 // Time metrics were sent. | 17 // Time metrics were sent. |
| 18 optional Timestamp metrics_sent_time = 2; | 18 optional Timestamp metrics_sent_time = 2; |
| 19 } | 19 } |
| 20 | 20 |
| 21 // Metrics for a single pageload. | 21 // Metrics for a single pageload. |
| 22 message PageloadMetrics { | 22 message PageloadMetrics { |
| 23 reserved 3; | |
|
tbansal1
2016/09/06 19:44:43
Why not change the field to deprecated=true
https:
RyanSturm
2016/09/06 20:02:57
It's unsupported, and there shouldn't be code gene
tbansal1
2016/09/06 20:13:17
Acknowledged.
| |
| 24 | |
| 23 // The possible effective connection type values. | 25 // The possible effective connection type values. |
| 24 // See //net/nqe/effective_connection_type.h for the detailed description of | 26 // See //net/nqe/effective_connection_type.h for the detailed description of |
| 25 // each of the enum values. | 27 // each of the enum values. |
| 26 enum EffectiveConnectionType { | 28 enum EffectiveConnectionType { |
| 27 EFFECTIVE_CONNECTION_TYPE_UNKNOWN = 0; | 29 EFFECTIVE_CONNECTION_TYPE_UNKNOWN = 0; |
| 28 EFFECTIVE_CONNECTION_TYPE_OFFLINE = 1; | 30 EFFECTIVE_CONNECTION_TYPE_OFFLINE = 1; |
| 29 EFFECTIVE_CONNECTION_TYPE_SLOW_2G = 2; | 31 EFFECTIVE_CONNECTION_TYPE_SLOW_2G = 2; |
| 30 EFFECTIVE_CONNECTION_TYPE_2G = 3; | 32 EFFECTIVE_CONNECTION_TYPE_2G = 3; |
| 31 EFFECTIVE_CONNECTION_TYPE_3G = 4; | 33 EFFECTIVE_CONNECTION_TYPE_3G = 4; |
| 32 EFFECTIVE_CONNECTION_TYPE_4G = 5; | 34 EFFECTIVE_CONNECTION_TYPE_4G = 5; |
| 33 }; | 35 }; |
| 34 | 36 |
| 35 // The session key used to load the page. | 37 // The session key used to load the page. |
| 36 optional string session_key = 1; | 38 optional string session_key = 1; |
| 37 // The time at which the first request of the pageload was made, according to | 39 // The time at which the first request of the pageload was made, according to |
| 38 // the client's clock. | 40 // the client's clock. |
| 39 optional Timestamp first_request_time = 2; | 41 optional Timestamp first_request_time = 2; |
| 40 // The time at which the last request of the pageload was made, according to | |
| 41 // the client's clock. | |
| 42 optional Timestamp last_request_time = 3; | |
| 43 // The URL of the main page request. | 42 // The URL of the main page request. |
| 44 optional string first_request_url = 4; | 43 optional string first_request_url = 4; |
| 45 // The URL of the last request. | 44 // The URL of the last request. |
| 46 optional string last_request_url = 5; | 45 optional string last_request_url = 5; |
| 47 | 46 |
| 48 // Time to first contentful paint. | 47 // Time to first contentful paint. |
| 49 optional Duration time_to_first_contentful_paint = 6; | 48 optional Duration time_to_first_contentful_paint = 6; |
| 50 // Time to first image paint. | 49 // Time to first image paint. |
| 51 optional Duration time_to_first_image_paint = 7; | 50 optional Duration time_to_first_image_paint = 7; |
| 52 // Time to first byte. | 51 // Time to first byte. |
| 53 optional Duration time_to_first_byte = 8; | 52 optional Duration time_to_first_byte = 8; |
| 54 // Time to onLoad event. | 53 // Time to onLoad event. |
| 55 optional Duration page_load_time = 9; | 54 optional Duration page_load_time = 9; |
| 56 | 55 |
| 57 // The sum of original-content-length values, over resources that were not | 56 // The sum of original-content-length values, over resources that were not |
| 58 // loaded from browser cache. | 57 // loaded from browser cache. |
| 59 optional int32 original_page_size_bytes = 10; | 58 optional int32 original_page_size_bytes = 10; |
| 60 // The sum of (compressed) content-length, over resources that were not loaded | 59 // The sum of (compressed) content-length, over resources that were not loaded |
| 61 // from browser cache. | 60 // from browser cache. |
| 62 optional int32 compressed_page_size_bytes = 11; | 61 optional int32 compressed_page_size_bytes = 11; |
| 63 | 62 |
| 64 // The effective connection type at the start of the navigation. | 63 // The effective connection type at the start of the navigation. |
| 65 optional EffectiveConnectionType effective_connection_type = 12; | 64 optional EffectiveConnectionType effective_connection_type = 12; |
| 65 | |
| 66 // The amount of time the parser was blocked by loading script. | |
| 67 optional Duration parse_blocked_on_script_load_duration = 13; | |
| 68 | |
| 69 // Time until parsing finished. | |
| 70 optional Duration parse_stop = 14; | |
| 66 } | 71 } |
| OLD | NEW |