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

Unified Diff: media/audio/audio_output_device.cc

Issue 577953002: Adds time measurement of WebRtcAudioRenderer::Render (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_device.cc
diff --git a/media/audio/audio_output_device.cc b/media/audio/audio_output_device.cc
index 5cc602197eb57c7ee57ae6684d105703078e2bfb..cb78ccbfee82cf2dced25f2c11c21b3403d98b10 100644
--- a/media/audio/audio_output_device.cc
+++ b/media/audio/audio_output_device.cc
@@ -10,6 +10,7 @@
#include "base/time/time.h"
#include "media/audio/audio_output_controller.h"
#include "media/base/limits.h"
+#include "media/base/scoped_histogram_timer.h"
namespace media {
@@ -290,6 +291,8 @@ void AudioOutputDevice::AudioThreadCallback::Process(int pending_data) {
if (pending_data < 0)
return;
+ SCOPED_UMA_HISTOGRAM_TIMER("Media.AudioOutputDevice.ProcessTime");
no longer working on chromium 2014/09/17 14:54:50 I would suggest moving the code to webrtc_audio_re
henrika (OOO until Aug 14) 2014/09/18 10:56:47 I could move it but AFAIK it is not possible to lo
henrika (OOO until Aug 14) 2014/09/18 11:03:16 Let me see if I can do something without the macro
+
// Convert the number of pending bytes in the render buffer into milliseconds.
int audio_delay_milliseconds = pending_data / bytes_per_ms_;
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698