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

Side by Side Diff: webrtc/api/statscollector.cc

Issue 2341293002: Add new decoding statistics for muted output (Closed)
Patch Set: Updates after reviews 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
« no previous file with comments | « webrtc/api/call/audio_receive_stream.h ('k') | webrtc/api/statscollector_unittest.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 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 { StatsReport::kStatsValueNamePreemptiveExpandRate, 136 { StatsReport::kStatsValueNamePreemptiveExpandRate,
137 info.preemptive_expand_rate }, 137 info.preemptive_expand_rate },
138 }; 138 };
139 139
140 const IntForAdd ints[] = { 140 const IntForAdd ints[] = {
141 { StatsReport::kStatsValueNameCurrentDelayMs, info.delay_estimate_ms }, 141 { StatsReport::kStatsValueNameCurrentDelayMs, info.delay_estimate_ms },
142 { StatsReport::kStatsValueNameDecodingCNG, info.decoding_cng }, 142 { StatsReport::kStatsValueNameDecodingCNG, info.decoding_cng },
143 { StatsReport::kStatsValueNameDecodingCTN, info.decoding_calls_to_neteq }, 143 { StatsReport::kStatsValueNameDecodingCTN, info.decoding_calls_to_neteq },
144 { StatsReport::kStatsValueNameDecodingCTSG, 144 { StatsReport::kStatsValueNameDecodingCTSG,
145 info.decoding_calls_to_silence_generator }, 145 info.decoding_calls_to_silence_generator },
146 { StatsReport::kStatsValueNameDecodingMutedOutput,
147 info.decoding_muted_output },
146 { StatsReport::kStatsValueNameDecodingNormal, info.decoding_normal }, 148 { StatsReport::kStatsValueNameDecodingNormal, info.decoding_normal },
147 { StatsReport::kStatsValueNameDecodingPLC, info.decoding_plc }, 149 { StatsReport::kStatsValueNameDecodingPLC, info.decoding_plc },
148 { StatsReport::kStatsValueNameDecodingPLCCNG, info.decoding_plc_cng }, 150 { StatsReport::kStatsValueNameDecodingPLCCNG, info.decoding_plc_cng },
149 { StatsReport::kStatsValueNameJitterBufferMs, info.jitter_buffer_ms }, 151 { StatsReport::kStatsValueNameJitterBufferMs, info.jitter_buffer_ms },
150 { StatsReport::kStatsValueNameJitterReceived, info.jitter_ms }, 152 { StatsReport::kStatsValueNameJitterReceived, info.jitter_ms },
151 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost }, 153 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost },
152 { StatsReport::kStatsValueNamePacketsReceived, info.packets_rcvd }, 154 { StatsReport::kStatsValueNamePacketsReceived, info.packets_rcvd },
153 { StatsReport::kStatsValueNamePreferredJitterBufferMs, 155 { StatsReport::kStatsValueNamePreferredJitterBufferMs,
154 info.jitter_buffer_preferred_ms }, 156 info.jitter_buffer_preferred_ms },
155 }; 157 };
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 StatsReport* report = entry.second; 964 StatsReport* report = entry.second;
963 report->set_timestamp(stats_gathering_started_); 965 report->set_timestamp(stats_gathering_started_);
964 } 966 }
965 } 967 }
966 968
967 void StatsCollector::ClearUpdateStatsCacheForTest() { 969 void StatsCollector::ClearUpdateStatsCacheForTest() {
968 stats_gathering_started_ = 0; 970 stats_gathering_started_ = 0;
969 } 971 }
970 972
971 } // namespace webrtc 973 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/call/audio_receive_stream.h ('k') | webrtc/api/statscollector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698