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

Side by Side Diff: webrtc/stats/rtcstats_objects.cc

Issue 2456463002: RTCOutboundRTPStreamStats added. (Closed)
Patch Set: Rebase and TODO for target_bitrate Created 4 years, 1 month 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
« no previous file with comments | « webrtc/stats/rtcstats.cc ('k') | webrtc/stats/rtcstatsreport.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 RTCPeerConnectionStats::RTCPeerConnectionStats( 286 RTCPeerConnectionStats::RTCPeerConnectionStats(
287 const RTCPeerConnectionStats& other) 287 const RTCPeerConnectionStats& other)
288 : RTCStats(other.id(), other.timestamp_us()), 288 : RTCStats(other.id(), other.timestamp_us()),
289 data_channels_opened(other.data_channels_opened), 289 data_channels_opened(other.data_channels_opened),
290 data_channels_closed(other.data_channels_closed) { 290 data_channels_closed(other.data_channels_closed) {
291 } 291 }
292 292
293 RTCPeerConnectionStats::~RTCPeerConnectionStats() { 293 RTCPeerConnectionStats::~RTCPeerConnectionStats() {
294 } 294 }
295 295
296 WEBRTC_RTCSTATS_IMPL(RTCRTPStreamStats, RTCStats, "rtp",
297 &ssrc,
298 &associate_stats_id,
299 &is_remote,
300 &media_type,
301 &media_track_id,
302 &transport_id,
303 &codec_id,
304 &fir_count,
305 &pli_count,
306 &nack_count,
307 &sli_count);
308
309 RTCRTPStreamStats::RTCRTPStreamStats(
310 const std::string& id, int64_t timestamp_us)
311 : RTCRTPStreamStats(std::string(id), timestamp_us) {
312 }
313
314 RTCRTPStreamStats::RTCRTPStreamStats(
315 std::string&& id, int64_t timestamp_us)
316 : RTCStats(std::move(id), timestamp_us),
317 ssrc("ssrc"),
318 associate_stats_id("associateStatsId"),
319 is_remote("isRemote", false),
320 media_type("mediaType"),
321 media_track_id("mediaTrackId"),
322 transport_id("transportId"),
323 codec_id("codecId"),
324 fir_count("firCount"),
325 pli_count("pliCount"),
326 nack_count("nackCount"),
327 sli_count("sliCount") {
328 }
329
330 RTCRTPStreamStats::RTCRTPStreamStats(
331 const RTCRTPStreamStats& other)
332 : RTCStats(other.id(), other.timestamp_us()),
333 ssrc(other.ssrc),
334 associate_stats_id(other.associate_stats_id),
335 is_remote(other.is_remote),
336 media_type(other.media_type),
337 media_track_id(other.media_track_id),
338 transport_id(other.transport_id),
339 codec_id(other.codec_id),
340 fir_count(other.fir_count),
341 pli_count(other.pli_count),
342 nack_count(other.nack_count),
343 sli_count(other.sli_count) {
344 }
345
346 RTCRTPStreamStats::~RTCRTPStreamStats() {
347 }
348
349 WEBRTC_RTCSTATS_IMPL(
350 RTCOutboundRTPStreamStats, RTCRTPStreamStats, "outbound-rtp",
351 &packets_sent,
352 &bytes_sent,
353 &target_bitrate,
354 &round_trip_time);
355
356 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(
357 const std::string& id, int64_t timestamp_us)
358 : RTCOutboundRTPStreamStats(std::string(id), timestamp_us) {
359 }
360
361 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(
362 std::string&& id, int64_t timestamp_us)
363 : RTCRTPStreamStats(std::move(id), timestamp_us),
364 packets_sent("packetsSent"),
365 bytes_sent("bytesSent"),
366 target_bitrate("targetBitrate"),
367 round_trip_time("roundTripTime") {
368 }
369
370 RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(
371 const RTCOutboundRTPStreamStats& other)
372 : RTCRTPStreamStats(other),
373 packets_sent(other.packets_sent),
374 bytes_sent(other.bytes_sent),
375 target_bitrate(other.target_bitrate),
376 round_trip_time(other.round_trip_time) {
377 }
378
379 RTCOutboundRTPStreamStats::~RTCOutboundRTPStreamStats() {
380 }
381
296 WEBRTC_RTCSTATS_IMPL(RTCTransportStats, RTCStats, "transport", 382 WEBRTC_RTCSTATS_IMPL(RTCTransportStats, RTCStats, "transport",
297 &bytes_sent, 383 &bytes_sent,
298 &bytes_received, 384 &bytes_received,
299 &rtcp_transport_stats_id, 385 &rtcp_transport_stats_id,
300 &active_connection, 386 &active_connection,
301 &selected_candidate_pair_id, 387 &selected_candidate_pair_id,
302 &local_certificate_id, 388 &local_certificate_id,
303 &remote_certificate_id); 389 &remote_certificate_id);
304 390
305 RTCTransportStats::RTCTransportStats( 391 RTCTransportStats::RTCTransportStats(
(...skipping 22 matching lines...) Expand all
328 active_connection(other.active_connection), 414 active_connection(other.active_connection),
329 selected_candidate_pair_id(other.selected_candidate_pair_id), 415 selected_candidate_pair_id(other.selected_candidate_pair_id),
330 local_certificate_id(other.local_certificate_id), 416 local_certificate_id(other.local_certificate_id),
331 remote_certificate_id(other.remote_certificate_id) { 417 remote_certificate_id(other.remote_certificate_id) {
332 } 418 }
333 419
334 RTCTransportStats::~RTCTransportStats() { 420 RTCTransportStats::~RTCTransportStats() {
335 } 421 }
336 422
337 } // namespace webrtc 423 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/stats/rtcstats.cc ('k') | webrtc/stats/rtcstatsreport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698