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

Side by Side Diff: webrtc/logging/rtc_event_log/rtc_event_log.proto

Issue 2666533002: Add probe logging to RtcEventLog. (Closed)
Patch Set: Rebase + format Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 syntax = "proto2"; 1 syntax = "proto2";
2 option optimize_for = LITE_RUNTIME; 2 option optimize_for = LITE_RUNTIME;
3 package webrtc.rtclog; 3 package webrtc.rtclog;
4 4
5 enum MediaType { 5 enum MediaType {
6 ANY = 0; 6 ANY = 0;
7 AUDIO = 1; 7 AUDIO = 1;
8 VIDEO = 2; 8 VIDEO = 2;
9 DATA = 3; 9 DATA = 3;
10 } 10 }
(...skipping 20 matching lines...) Expand all
31 RTP_EVENT = 3; 31 RTP_EVENT = 3;
32 RTCP_EVENT = 4; 32 RTCP_EVENT = 4;
33 AUDIO_PLAYOUT_EVENT = 5; 33 AUDIO_PLAYOUT_EVENT = 5;
34 LOSS_BASED_BWE_UPDATE = 6; 34 LOSS_BASED_BWE_UPDATE = 6;
35 DELAY_BASED_BWE_UPDATE = 7; 35 DELAY_BASED_BWE_UPDATE = 7;
36 VIDEO_RECEIVER_CONFIG_EVENT = 8; 36 VIDEO_RECEIVER_CONFIG_EVENT = 8;
37 VIDEO_SENDER_CONFIG_EVENT = 9; 37 VIDEO_SENDER_CONFIG_EVENT = 9;
38 AUDIO_RECEIVER_CONFIG_EVENT = 10; 38 AUDIO_RECEIVER_CONFIG_EVENT = 10;
39 AUDIO_SENDER_CONFIG_EVENT = 11; 39 AUDIO_SENDER_CONFIG_EVENT = 11;
40 AUDIO_NETWORK_ADAPTATION_EVENT = 16; 40 AUDIO_NETWORK_ADAPTATION_EVENT = 16;
41 BWE_PROBE_CLUSTER_CREATED_EVENT = 17;
42 BWE_PROBE_RESULT_EVENT = 18;
41 } 43 }
42 44
43 // required - Indicates the type of this event 45 // required - Indicates the type of this event
44 optional EventType type = 2; 46 optional EventType type = 2;
45 47
46 // optional - but required if type == RTP_EVENT 48 // optional - but required if type == RTP_EVENT
47 optional RtpPacket rtp_packet = 3; 49 optional RtpPacket rtp_packet = 3;
48 50
49 // optional - but required if type == RTCP_EVENT 51 // optional - but required if type == RTCP_EVENT
50 optional RtcpPacket rtcp_packet = 4; 52 optional RtcpPacket rtcp_packet = 4;
(...skipping 14 matching lines...) Expand all
65 optional VideoSendConfig video_sender_config = 9; 67 optional VideoSendConfig video_sender_config = 9;
66 68
67 // optional - but required if type == AUDIO_RECEIVER_CONFIG_EVENT 69 // optional - but required if type == AUDIO_RECEIVER_CONFIG_EVENT
68 optional AudioReceiveConfig audio_receiver_config = 10; 70 optional AudioReceiveConfig audio_receiver_config = 10;
69 71
70 // optional - but required if type == AUDIO_SENDER_CONFIG_EVENT 72 // optional - but required if type == AUDIO_SENDER_CONFIG_EVENT
71 optional AudioSendConfig audio_sender_config = 11; 73 optional AudioSendConfig audio_sender_config = 11;
72 74
73 // optional - but required if type == AUDIO_NETWORK_ADAPTATION_EVENT 75 // optional - but required if type == AUDIO_NETWORK_ADAPTATION_EVENT
74 optional AudioNetworkAdaptation audio_network_adaptation = 16; 76 optional AudioNetworkAdaptation audio_network_adaptation = 16;
77
78 // optional - but required if type == BWE_PROBE_CLUSTER_CREATED_EVENT
79 optional BweProbeCluster probe_cluster = 17;
80
81 // optional - but required if type == BWE_PROBE_RESULT_EVENT
82 optional BweProbeResult probe_result = 18;
75 } 83 }
76 84
77 message RtpPacket { 85 message RtpPacket {
78 // required - True if the packet is incoming w.r.t. the user logging the data 86 // required - True if the packet is incoming w.r.t. the user logging the data
79 optional bool incoming = 1; 87 optional bool incoming = 1;
80 88
81 // required 89 // required
82 optional MediaType type = 2; 90 optional MediaType type = 2;
83 91
84 // required - The size of the packet including both payload and header. 92 // required - The size of the packet including both payload and header.
85 optional uint32 packet_length = 3; 93 optional uint32 packet_length = 3;
86 94
87 // required - The RTP header only. 95 // required - The RTP header only.
88 optional bytes header = 4; 96 optional bytes header = 4;
89 97
98 // optional - The probe cluster id.
99 optional uint32 probe_cluster_id = 5;
100
90 // Do not add code to log user payload data without a privacy review! 101 // Do not add code to log user payload data without a privacy review!
91 } 102 }
92 103
93 message RtcpPacket { 104 message RtcpPacket {
94 // required - True if the packet is incoming w.r.t. the user logging the data 105 // required - True if the packet is incoming w.r.t. the user logging the data
95 optional bool incoming = 1; 106 optional bool incoming = 1;
96 107
97 // required 108 // required
98 optional MediaType type = 2; 109 optional MediaType type = 2;
99 110
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 275
265 // Whether forward error correction (FEC) is turned on or off. 276 // Whether forward error correction (FEC) is turned on or off.
266 optional bool enable_fec = 4; 277 optional bool enable_fec = 4;
267 278
268 // Whether discontinuous transmission (DTX) is turned on or off. 279 // Whether discontinuous transmission (DTX) is turned on or off.
269 optional bool enable_dtx = 5; 280 optional bool enable_dtx = 5;
270 281
271 // Number of audio channels that each encoded packet consists of. 282 // Number of audio channels that each encoded packet consists of.
272 optional uint32 num_channels = 6; 283 optional uint32 num_channels = 6;
273 } 284 }
285
286 message BweProbeCluster {
287 // required - The id of this probe cluster.
288 optional uint32 id = 1;
289
290 // required - The bitrate in bps that this probe cluster is meant to probe.
291 optional uint64 bitrate_bps = 2;
292
293 // required - The minimum number of packets used to probe the given bitrate.
294 optional uint32 min_packets = 3;
295
296 // required - The minimum number of bytes used to probe the given bitrate.
297 optional uint32 min_bytes = 4;
298 }
299
300 message BweProbeResult {
301 // required - The id of this probe cluster.
302 optional uint32 id = 1;
303
304 enum ResultType {
305 SUCCESS = 0;
306 INVALID_SEND_RECEIVE_INTERVAL = 1;
307 INVALID_SEND_RECEIVE_RATIO = 2;
308 TIMEOUT = 3;
309 }
310
311 // required - The result of this probing attempt.
312 optional ResultType result = 2;
313
314 // optional - but required if result == SUCCESS. The resulting bitrate in bps.
315 optional uint64 bitrate_bps = 3;
316 }
OLDNEW
« no previous file with comments | « webrtc/logging/rtc_event_log/rtc_event_log.cc ('k') | webrtc/logging/rtc_event_log/rtc_event_log_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698