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

Unified Diff: webrtc/call/call.cc

Issue 2972613002: Revert of Add received audio and video call duration metrics based on packets. (Closed)
Patch Set: Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/video/end_to_end_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/call/call.cc
diff --git a/webrtc/call/call.cc b/webrtc/call/call.cc
index 4f3ed2394511424f5bc361094382adee70c4d23e..b4a9456d77546c02b29d6672d8873409680fc2f8 100644
--- a/webrtc/call/call.cc
+++ b/webrtc/call/call.cc
@@ -325,10 +325,6 @@
RateCounter received_audio_bytes_per_second_counter_;
RateCounter received_video_bytes_per_second_counter_;
RateCounter received_rtcp_bytes_per_second_counter_;
- rtc::Optional<int64_t> first_received_rtp_audio_ms_;
- rtc::Optional<int64_t> last_received_rtp_audio_ms_;
- rtc::Optional<int64_t> first_received_rtp_video_ms_;
- rtc::Optional<int64_t> last_received_rtp_video_ms_;
// TODO(holmer): Remove this lock once BitrateController no longer calls
// OnNetworkChanged from multiple threads.
@@ -534,16 +530,6 @@
}
void Call::UpdateReceiveHistograms() {
- if (first_received_rtp_audio_ms_) {
- RTC_HISTOGRAM_COUNTS_100000(
- "WebRTC.Call.TimeReceivingAudioRtpPacketsInSeconds",
- (*last_received_rtp_audio_ms_ - *first_received_rtp_audio_ms_) / 1000);
- }
- if (first_received_rtp_video_ms_) {
- RTC_HISTOGRAM_COUNTS_100000(
- "WebRTC.Call.TimeReceivingVideoRtpPacketsInSeconds",
- (*last_received_rtp_video_ms_ - *first_received_rtp_video_ms_) / 1000);
- }
const int kMinRequiredPeriodicSamples = 5;
AggregatedStats video_bytes_per_sec =
received_video_bytes_per_second_counter_.GetStats();
@@ -1331,11 +1317,6 @@
received_bytes_per_second_counter_.Add(static_cast<int>(length));
received_audio_bytes_per_second_counter_.Add(static_cast<int>(length));
event_log_->LogRtpHeader(kIncomingPacket, packet, length);
- const int64_t arrival_time_ms = parsed_packet->arrival_time_ms();
- if (!first_received_rtp_audio_ms_) {
- first_received_rtp_audio_ms_.emplace(arrival_time_ms);
- }
- last_received_rtp_audio_ms_.emplace(arrival_time_ms);
return DELIVERY_OK;
}
} else if (media_type == MediaType::VIDEO) {
@@ -1343,11 +1324,6 @@
received_bytes_per_second_counter_.Add(static_cast<int>(length));
received_video_bytes_per_second_counter_.Add(static_cast<int>(length));
event_log_->LogRtpHeader(kIncomingPacket, packet, length);
- const int64_t arrival_time_ms = parsed_packet->arrival_time_ms();
- if (!first_received_rtp_video_ms_) {
- first_received_rtp_video_ms_.emplace(arrival_time_ms);
- }
- last_received_rtp_video_ms_.emplace(arrival_time_ms);
return DELIVERY_OK;
}
}
« no previous file with comments | « no previous file | webrtc/video/end_to_end_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698