OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 package extensions.core_api.cast_channel.proto; | 9 package extensions.core_api.cast_channel.proto; |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
124 optional ErrorState error_state = 10; | 124 optional ErrorState error_state = 10; |
125 | 125 |
126 optional ChallengeReplyErrorType challenge_reply_error_type = 11; | 126 optional ChallengeReplyErrorType challenge_reply_error_type = 11; |
127 } | 127 } |
128 | 128 |
129 message AggregatedSocketEvent { | 129 message AggregatedSocketEvent { |
130 optional int32 id = 1; | 130 optional int32 id = 1; |
131 optional int32 endpoint_id = 2; | 131 optional int32 endpoint_id = 2; |
132 optional ChannelAuth channel_auth_type = 3; | 132 optional ChannelAuth channel_auth_type = 3; |
133 repeated SocketEvent socket_event = 4; | 133 repeated SocketEvent socket_event = 4; |
134 optional int64 bytes_read = 5; | |
135 optional int64 bytes_written = 6; | |
134 } | 136 } |
135 | 137 |
136 message Log { | 138 message Log { |
137 // Each AggregatedSocketEvent represents events recorded for a socket. | 139 // Each AggregatedSocketEvent represents events recorded for a socket. |
138 repeated AggregatedSocketEvent aggregated_socket_event = 1; | 140 repeated AggregatedSocketEvent aggregated_socket_event = 1; |
139 | 141 |
140 // Number of socket log entries evicted by the logger due to size constraints. | 142 // Number of socket log entries evicted by the logger due to size constraints. |
141 optional int32 num_evicted_aggregated_socket_events = 2; | 143 optional int32 num_evicted_aggregated_socket_events = 2; |
142 | 144 |
143 // Number of event log entries evicted by the logger due to size constraints. | 145 // Number of event log entries evicted by the logger due to size constraints. |
144 optional int32 num_evicted_socket_events = 3; | 146 optional int32 num_evicted_socket_events = 3; |
145 | 147 |
146 // TODO(imcheng): Add other stats, such as bytes read/written across sockets. | 148 optional int64 total_bytes_read = 4; |
mark a. foltz
2014/08/13 22:06:31
Is this data interesting? It will be aggregated a
imcheng
2014/08/14 00:24:34
Yes, this was the intention.
| |
149 optional int64 total_bytes_written = 5; | |
147 } | 150 } |
OLD | NEW |