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

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

Issue 2666533002: Add probe logging to RtcEventLog. (Closed)
Patch Set: Created 3 years, 10 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 BWE_PACKET_LOSS_EVENT = 6; 34 BWE_PACKET_LOSS_EVENT = 6;
35 BWE_PACKET_DELAY_EVENT = 7; 35 BWE_PACKET_DELAY_EVENT = 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 11 matching lines...) Expand all
62 optional VideoSendConfig video_sender_config = 9; 64 optional VideoSendConfig video_sender_config = 9;
63 65
64 // optional - but required if type == AUDIO_RECEIVER_CONFIG_EVENT 66 // optional - but required if type == AUDIO_RECEIVER_CONFIG_EVENT
65 optional AudioReceiveConfig audio_receiver_config = 10; 67 optional AudioReceiveConfig audio_receiver_config = 10;
66 68
67 // optional - but required if type == AUDIO_SENDER_CONFIG_EVENT 69 // optional - but required if type == AUDIO_SENDER_CONFIG_EVENT
68 optional AudioSendConfig audio_sender_config = 11; 70 optional AudioSendConfig audio_sender_config = 11;
69 71
70 // optional - but required if type == AUDIO_NETWORK_ADAPTATION_EVENT 72 // optional - but required if type == AUDIO_NETWORK_ADAPTATION_EVENT
71 optional AudioNetworkAdaptation audio_network_adaptation = 16; 73 optional AudioNetworkAdaptation audio_network_adaptation = 16;
74
75 // optional - but required if type == BWE_PROBE_CLUSTER_CREATED_EVENT
76 optional BweProbeCluster probe_cluster = 17;
77
78 // optional - but required if type == BWE_PROBE_RESULT_EVENT
79 optional BweProbeResult probe_result = 18;
72 } 80 }
73 81
74 message RtpPacket { 82 message RtpPacket {
75 // required - True if the packet is incoming w.r.t. the user logging the data 83 // required - True if the packet is incoming w.r.t. the user logging the data
76 optional bool incoming = 1; 84 optional bool incoming = 1;
77 85
78 // required 86 // required
79 optional MediaType type = 2; 87 optional MediaType type = 2;
80 88
81 // required - The size of the packet including both payload and header. 89 // required - The size of the packet including both payload and header.
82 optional uint32 packet_length = 3; 90 optional uint32 packet_length = 3;
83 91
84 // required - The RTP header only. 92 // required - The RTP header only.
85 optional bytes header = 4; 93 optional bytes header = 4;
86 94
95 // optional - The probe cluster id.
96 optional uint32 probe_cluster_id = 5;
97
87 // Do not add code to log user payload data without a privacy review! 98 // Do not add code to log user payload data without a privacy review!
88 } 99 }
89 100
90 message RtcpPacket { 101 message RtcpPacket {
91 // required - True if the packet is incoming w.r.t. the user logging the data 102 // required - True if the packet is incoming w.r.t. the user logging the data
92 optional bool incoming = 1; 103 optional bool incoming = 1;
93 104
94 // required 105 // required
95 optional MediaType type = 2; 106 optional MediaType type = 2;
96 107
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 optional float uplink_packet_loss_fraction = 3; 255 optional float uplink_packet_loss_fraction = 3;
245 256
246 // Whether forward error correction (FEC) is turned on or off. 257 // Whether forward error correction (FEC) is turned on or off.
247 optional bool enable_fec = 4; 258 optional bool enable_fec = 4;
248 259
249 // Whether discontinuous transmission (DTX) is turned on or off. 260 // Whether discontinuous transmission (DTX) is turned on or off.
250 optional bool enable_dtx = 5; 261 optional bool enable_dtx = 5;
251 262
252 // Number of audio channels that each encoded packet consists of. 263 // Number of audio channels that each encoded packet consists of.
253 optional uint32 num_channels = 6; 264 optional uint32 num_channels = 6;
265 }
266
267 message BweProbeCluster {
268 // required - The id of this probe cluster.
269 optional uint32 id = 1;
270
271 // required - The bitrate in bps that this probe cluster is meant to probe.
272 optional uint64 bitrate_bps = 2;
273
274 // required - The minimum number of probes used to probe the given bitrate.
275 optional uint32 min_probes = 3;
276
277 // required - The minimum number of bytes used to probe the given bitrate.
278 optional uint32 min_bytes = 4;
279 }
280
281 message BweProbeResult {
282 // required - The id of this probe cluster.
283 optional uint32 id = 1;
284
285 enum ResultType {
286 SUCCESS = 0;
287 INVALID_SEND_RECEIVE_INTERVAL = 1;
288 INVALID_SEND_RECEIVE_RATIO = 2;
289 TIMEOUT = 3;
290 }
291
292 // required - The result of this probing attempt.
293 optional ResultType result = 2;
294
295 // optional - but required if result == SUCCESS. The resulting bitrate in bps.
296 optional uint64 bitrate_bps = 3;
254 } 297 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698