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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc

Issue 2360053003: Fixig issues in bwe plot dynamics. (Closed)
Patch Set: removing not useful check Created 4 years, 3 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 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 // Store this report. 271 // Store this report.
272 last_reported_statistics_ = stats; 272 last_reported_statistics_ = stats;
273 273
274 // Only for report blocks in RTCP SR and RR. 274 // Only for report blocks in RTCP SR and RR.
275 last_report_inorder_packets_ = 275 last_report_inorder_packets_ =
276 receive_counters_.transmitted.packets - 276 receive_counters_.transmitted.packets -
277 receive_counters_.retransmitted.packets; 277 receive_counters_.retransmitted.packets;
278 last_report_old_packets_ = receive_counters_.retransmitted.packets; 278 last_report_old_packets_ = receive_counters_.retransmitted.packets;
279 last_report_seq_max_ = received_seq_max_; 279 last_report_seq_max_ = received_seq_max_;
280 BWE_TEST_LOGGING_PLOT_WITH_SSRC(1, "cumulative_loss[pkts]", 280 BWE_TEST_LOGGING_PLOT_WITH_SSRC(1, "cumulative_loss_pkts",
281 clock_->TimeInMilliseconds(), 281 clock_->TimeInMilliseconds(),
282 cumulative_loss_, ssrc_); 282 cumulative_loss_, ssrc_);
283 BWE_TEST_LOGGING_PLOT_WITH_SSRC( 283 BWE_TEST_LOGGING_PLOT_WITH_SSRC(
284 1, "received_seq_max[pkts]", clock_->TimeInMilliseconds(), 284 1, "received_seq_max_pkts", clock_->TimeInMilliseconds(),
285 (received_seq_max_ - received_seq_first_), ssrc_); 285 (received_seq_max_ - received_seq_first_), ssrc_);
286 286
287 return stats; 287 return stats;
288 } 288 }
289 289
290 void StreamStatisticianImpl::GetDataCounters( 290 void StreamStatisticianImpl::GetDataCounters(
291 size_t* bytes_received, uint32_t* packets_received) const { 291 size_t* bytes_received, uint32_t* packets_received) const {
292 rtc::CritScope cs(&stream_lock_); 292 rtc::CritScope cs(&stream_lock_);
293 if (bytes_received) { 293 if (bytes_received) {
294 *bytes_received = receive_counters_.transmitted.payload_bytes + 294 *bytes_received = receive_counters_.transmitted.payload_bytes +
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 void NullReceiveStatistics::SetMaxReorderingThreshold( 510 void NullReceiveStatistics::SetMaxReorderingThreshold(
511 int max_reordering_threshold) {} 511 int max_reordering_threshold) {}
512 512
513 void NullReceiveStatistics::RegisterRtcpStatisticsCallback( 513 void NullReceiveStatistics::RegisterRtcpStatisticsCallback(
514 RtcpStatisticsCallback* callback) {} 514 RtcpStatisticsCallback* callback) {}
515 515
516 void NullReceiveStatistics::RegisterRtpStatisticsCallback( 516 void NullReceiveStatistics::RegisterRtpStatisticsCallback(
517 StreamDataCountersCallback* callback) {} 517 StreamDataCountersCallback* callback) {}
518 518
519 } // namespace webrtc 519 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/plot_dynamics.sh ('k') | webrtc/modules/rtp_rtcp/source/rtp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698