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

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

Issue 1866983002: Add AEC filter divergence metric to StatsCollector. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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
« webrtc/api/statstypes.h ('K') | « webrtc/api/statstypes.h ('k') | no next file » | 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 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2014 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 const char* StatsReport::Value::display_name() const { 364 const char* StatsReport::Value::display_name() const {
365 switch (name) { 365 switch (name) {
366 case kStatsValueNameAudioOutputLevel: 366 case kStatsValueNameAudioOutputLevel:
367 return "audioOutputLevel"; 367 return "audioOutputLevel";
368 case kStatsValueNameAudioInputLevel: 368 case kStatsValueNameAudioInputLevel:
369 return "audioInputLevel"; 369 return "audioInputLevel";
370 case kStatsValueNameBytesSent: 370 case kStatsValueNameBytesSent:
371 return "bytesSent"; 371 return "bytesSent";
372 case kStatsValueNamePacketsSent: 372 case kStatsValueNamePacketsSent:
373 return "packetsSent"; 373 return "packetsSent";
374 case kStatsValueNameAecDivergentFilterFraction:
tommi 2016/04/07 13:37:02 looks like we've regressed from the alphabetic ord
minyue-webrtc 2016/04/07 14:29:40 Done.
375 return "aecDivergentFilterFraction";
374 case kStatsValueNameBytesReceived: 376 case kStatsValueNameBytesReceived:
375 return "bytesReceived"; 377 return "bytesReceived";
376 case kStatsValueNameLabel: 378 case kStatsValueNameLabel:
377 return "label"; 379 return "label";
378 case kStatsValueNamePacketsReceived: 380 case kStatsValueNamePacketsReceived:
379 return "packetsReceived"; 381 return "packetsReceived";
380 case kStatsValueNamePacketsLost: 382 case kStatsValueNamePacketsLost:
381 return "packetsLost"; 383 return "packetsLost";
382 case kStatsValueNameProtocol: 384 case kStatsValueNameProtocol:
383 return "protocol"; 385 return "protocol";
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 // Looks for a report with the given |id|. If one is not found, NULL 758 // Looks for a report with the given |id|. If one is not found, NULL
757 // will be returned. 759 // will be returned.
758 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { 760 StatsReport* StatsCollection::Find(const StatsReport::Id& id) {
759 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 761 RTC_DCHECK(thread_checker_.CalledOnValidThread());
760 Container::iterator it = std::find_if(list_.begin(), list_.end(), 762 Container::iterator it = std::find_if(list_.begin(), list_.end(),
761 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); 763 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); });
762 return it == list_.end() ? nullptr : *it; 764 return it == list_.end() ? nullptr : *it;
763 } 765 }
764 766
765 } // namespace webrtc 767 } // namespace webrtc
OLDNEW
« webrtc/api/statstypes.h ('K') | « webrtc/api/statstypes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698