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

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

Issue 2629563003: Added a new echo likelihood stat that reports the maximum value from a previous time period. (Closed)
Patch Set: Small bugfix. Created 3 years, 11 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 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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 case kStatsValueNameRemoteAddress: 569 case kStatsValueNameRemoteAddress:
570 return "googRemoteAddress"; 570 return "googRemoteAddress";
571 case kStatsValueNameRemoteCandidateId: 571 case kStatsValueNameRemoteCandidateId:
572 return "remoteCandidateId"; 572 return "remoteCandidateId";
573 case kStatsValueNameRemoteCandidateType: 573 case kStatsValueNameRemoteCandidateType:
574 return "googRemoteCandidateType"; 574 return "googRemoteCandidateType";
575 case kStatsValueNameRemoteCertificateId: 575 case kStatsValueNameRemoteCertificateId:
576 return "remoteCertificateId"; 576 return "remoteCertificateId";
577 case kStatsValueNameResidualEchoLikelihood: 577 case kStatsValueNameResidualEchoLikelihood:
578 return "googResidualEchoLikelihood"; 578 return "googResidualEchoLikelihood";
579 case kStatsValueNameResidualEchoLikelihoodRecentMax:
580 return "googResidualEchoLikelihoodRecentMax";
579 case kStatsValueNameRetransmitBitrate: 581 case kStatsValueNameRetransmitBitrate:
580 return "googRetransmitBitrate"; 582 return "googRetransmitBitrate";
581 case kStatsValueNameRtt: 583 case kStatsValueNameRtt:
582 return "googRtt"; 584 return "googRtt";
583 case kStatsValueNameSecondaryDecodedRate: 585 case kStatsValueNameSecondaryDecodedRate:
584 return "googSecondaryDecodedRate"; 586 return "googSecondaryDecodedRate";
585 case kStatsValueNameSendPacketsDiscarded: 587 case kStatsValueNameSendPacketsDiscarded:
586 return "packetsDiscardedOnSend"; 588 return "packetsDiscardedOnSend";
587 case kStatsValueNameSpeechExpandRate: 589 case kStatsValueNameSpeechExpandRate:
588 return "googSpeechExpandRate"; 590 return "googSpeechExpandRate";
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 // Looks for a report with the given |id|. If one is not found, NULL 780 // Looks for a report with the given |id|. If one is not found, NULL
779 // will be returned. 781 // will be returned.
780 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { 782 StatsReport* StatsCollection::Find(const StatsReport::Id& id) {
781 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 783 RTC_DCHECK(thread_checker_.CalledOnValidThread());
782 Container::iterator it = std::find_if(list_.begin(), list_.end(), 784 Container::iterator it = std::find_if(list_.begin(), list_.end(),
783 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); 785 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); });
784 return it == list_.end() ? nullptr : *it; 786 return it == list_.end() ? nullptr : *it;
785 } 787 }
786 788
787 } // namespace webrtc 789 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698