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

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

Issue 3011623002: Add new ANA stats to GetStats() to count the number of actions taken by each controller. (Closed)
Patch Set: Fix for failing test. Created 3 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/statstypes.h ('k') | webrtc/audio/audio_send_stream.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 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 case kStatsValueNameRemoteCandidateId: 579 case kStatsValueNameRemoteCandidateId:
580 return "remoteCandidateId"; 580 return "remoteCandidateId";
581 case kStatsValueNameRemoteCandidateType: 581 case kStatsValueNameRemoteCandidateType:
582 return "googRemoteCandidateType"; 582 return "googRemoteCandidateType";
583 case kStatsValueNameRemoteCertificateId: 583 case kStatsValueNameRemoteCertificateId:
584 return "remoteCertificateId"; 584 return "remoteCertificateId";
585 case kStatsValueNameResidualEchoLikelihood: 585 case kStatsValueNameResidualEchoLikelihood:
586 return "googResidualEchoLikelihood"; 586 return "googResidualEchoLikelihood";
587 case kStatsValueNameResidualEchoLikelihoodRecentMax: 587 case kStatsValueNameResidualEchoLikelihoodRecentMax:
588 return "googResidualEchoLikelihoodRecentMax"; 588 return "googResidualEchoLikelihoodRecentMax";
589 case kStatsValueNameAnaBitrateActionCounter:
590 return "googAnaBitrateActionCounter";
591 case kStatsValueNameAnaChannelActionCounter:
592 return "googAnaChannelActionCounter";
593 case kStatsValueNameAnaDtxActionCounter:
594 return "googAnaDtxActionCounter";
595 case kStatsValueNameAnaFecActionCounter:
596 return "googAnaFecActionCounter";
597 case kStatsValueNameAnaFrameLengthActionCounter:
598 return "googAnaFrameLengthActionCounter";
589 case kStatsValueNameRetransmitBitrate: 599 case kStatsValueNameRetransmitBitrate:
590 return "googRetransmitBitrate"; 600 return "googRetransmitBitrate";
591 case kStatsValueNameRtt: 601 case kStatsValueNameRtt:
592 return "googRtt"; 602 return "googRtt";
593 case kStatsValueNameSecondaryDecodedRate: 603 case kStatsValueNameSecondaryDecodedRate:
594 return "googSecondaryDecodedRate"; 604 return "googSecondaryDecodedRate";
595 case kStatsValueNameSecondaryDiscardedRate: 605 case kStatsValueNameSecondaryDiscardedRate:
596 return "googSecondaryDiscardedRate"; 606 return "googSecondaryDiscardedRate";
597 case kStatsValueNameSendPacketsDiscarded: 607 case kStatsValueNameSendPacketsDiscarded:
598 return "packetsDiscardedOnSend"; 608 return "packetsDiscardedOnSend";
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 // Looks for a report with the given |id|. If one is not found, null 808 // Looks for a report with the given |id|. If one is not found, null
799 // will be returned. 809 // will be returned.
800 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { 810 StatsReport* StatsCollection::Find(const StatsReport::Id& id) {
801 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 811 RTC_DCHECK(thread_checker_.CalledOnValidThread());
802 Container::iterator it = std::find_if(list_.begin(), list_.end(), 812 Container::iterator it = std::find_if(list_.begin(), list_.end(),
803 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); 813 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); });
804 return it == list_.end() ? nullptr : *it; 814 return it == list_.end() ? nullptr : *it;
805 } 815 }
806 816
807 } // namespace webrtc 817 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/statstypes.h ('k') | webrtc/audio/audio_send_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698