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

Unified Diff: media/filters/audio_renderer_impl.cc

Issue 14054019: Add Media.AudioRendererEvents histogram to measure how often OnRenderError() is called. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_impl.cc
diff --git a/media/filters/audio_renderer_impl.cc b/media/filters/audio_renderer_impl.cc
index fd0a4104842ef8c97b247ad1515ad9dea0c33ae4..598269cd6ec1bc0836ac856f4bdebd754050f0b3 100644
--- a/media/filters/audio_renderer_impl.cc
+++ b/media/filters/audio_renderer_impl.cc
@@ -14,6 +14,7 @@
#include "base/command_line.h"
#include "base/logging.h"
#include "base/message_loop_proxy.h"
+#include "base/metrics/histogram.h"
#include "media/audio/audio_util.h"
#include "media/base/audio_splicer.h"
#include "media/base/bind_to_loop.h"
@@ -284,6 +285,8 @@ void AudioRendererImpl::OnDecoderSelected(
state_ = kPaused;
+ HISTOGRAM_BOOLEAN("Media.AudioRendererSinkErrors", false);
DaleCurtis 2013/04/24 20:56:39 I believe you want UMA_*, otherwise this won't get
jar (doing other things) 2013/04/24 21:51:07 +1 for needing the prefix UMA_HISTOGRAM_BOOLEAN T
scherkus (not reviewing) 2013/04/25 00:04:46 Done.
+
sink_->Initialize(audio_parameters_, weak_this_);
sink_->Start();
@@ -629,6 +632,7 @@ void AudioRendererImpl::UpdateEarliestEndTime_Locked(
}
void AudioRendererImpl::OnRenderError() {
+ HISTOGRAM_BOOLEAN("Media.AudioRendererSinkErrors", true);
scherkus (not reviewing) 2013/04/24 20:27:41 we can also record audio_parameters_ when hitting
jar (doing other things) 2013/04/24 21:51:07 Some of this stuff *might* be pulled from dremel l
disabled_cb_.Run();
}
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698