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

Side by Side Diff: webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 129
130 void AudioNetworkAdaptorImpl::StartDebugDump(FILE* file_handle) { 130 void AudioNetworkAdaptorImpl::StartDebugDump(FILE* file_handle) {
131 debug_dump_writer_ = DebugDumpWriter::Create(file_handle); 131 debug_dump_writer_ = DebugDumpWriter::Create(file_handle);
132 } 132 }
133 133
134 void AudioNetworkAdaptorImpl::StopDebugDump() { 134 void AudioNetworkAdaptorImpl::StopDebugDump() {
135 debug_dump_writer_.reset(nullptr); 135 debug_dump_writer_.reset(nullptr);
136 } 136 }
137 137
138 ANAStats AudioNetworkAdaptorImpl::GetStats() const {
139 // TODO(ivoc): Actually implement the stat.
140 // Tracking bug: https://crbug.com/webrtc/8127
141 return ANAStats();
142 }
143
138 void AudioNetworkAdaptorImpl::DumpNetworkMetrics() { 144 void AudioNetworkAdaptorImpl::DumpNetworkMetrics() {
139 if (debug_dump_writer_) 145 if (debug_dump_writer_)
140 debug_dump_writer_->DumpNetworkMetrics(last_metrics_, rtc::TimeMillis()); 146 debug_dump_writer_->DumpNetworkMetrics(last_metrics_, rtc::TimeMillis());
141 } 147 }
142 148
143 void AudioNetworkAdaptorImpl::UpdateNetworkMetrics( 149 void AudioNetworkAdaptorImpl::UpdateNetworkMetrics(
144 const Controller::NetworkMetrics& network_metrics) { 150 const Controller::NetworkMetrics& network_metrics) {
145 for (auto& controller : controller_manager_->GetControllers()) 151 for (auto& controller : controller_manager_->GetControllers())
146 controller->UpdateNetworkMetrics(network_metrics); 152 controller->UpdateNetworkMetrics(network_metrics);
147 } 153 }
148 154
149 } // namespace webrtc 155 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698