Index: webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc b/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc |
index 4ec11b63452745cf1f8d772b0971575dc97e767b..a2dd1c28ff38e2de944ae91bf3edd2627d88bb5e 100644 |
--- a/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc |
+++ b/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc |
@@ -17,6 +17,8 @@ |
#include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_config.h" |
#include "webrtc/modules/rtp_rtcp/source/time_util.h" |
+#include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h" |
stefan-webrtc
2016/09/01 14:07:36
Order alphabetically (should go before rtp_rtcp)
Gaetano Carlucci
2016/09/01 16:06:26
ok
|
+ |
namespace webrtc { |
const int64_t kStatisticsTimeoutMs = 8000; |
@@ -276,6 +278,12 @@ RtcpStatistics StreamStatisticianImpl::CalculateRtcpStatistics() { |
receive_counters_.retransmitted.packets; |
last_report_old_packets_ = receive_counters_.retransmitted.packets; |
last_report_seq_max_ = received_seq_max_; |
+ char str[80]; |
+ snprintf(str, sizeof(str), "%d cumulative_loss[pkts]", ssrc_); |
+ BWE_TEST_LOGGING_PLOT(1, str, clock_->TimeInMilliseconds(), cumulative_loss_); |
stefan-webrtc
2016/09/01 14:07:36
Instead of doing snprintf here I'd suggest you mak
Gaetano Carlucci
2016/09/01 16:06:26
ok
|
+ snprintf(str, sizeof(str), "%d received_seq_max[pkts]", ssrc_); |
+ BWE_TEST_LOGGING_PLOT(1, str, clock_->TimeInMilliseconds(), \ |
+ (received_seq_max_ - received_seq_first_)); |
return stats; |
} |