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

Unified Diff: content/renderer/media/audio_device_factory.cc

Issue 2124503002: UMA stats for AudioRendererSinkCache utilization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: content/renderer/media/audio_device_factory.cc
diff --git a/content/renderer/media/audio_device_factory.cc b/content/renderer/media/audio_device_factory.cc
index a776d694ef60d3f1a579f4b48c09456a19785236..03da1fd1c27ff7d21bb10a2245ed65abf33bc233 100644
--- a/content/renderer/media/audio_device_factory.cc
+++ b/content/renderer/media/audio_device_factory.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include "base/logging.h"
+#include "base/metrics/histogram_macros.h"
#include "build/build_config.h"
#include "content/common/content_constants_internal.h"
#include "content/renderer/media/audio_input_message_filter.h"
@@ -128,6 +129,7 @@ AudioDeviceFactory::NewAudioRendererSink(SourceType source_type,
return NewMixableSink(source_type, render_frame_id, session_id, device_id,
security_origin);
+ UMA_HISTOGRAM_BOOLEAN("Media.Audio.SinkCache.UsedForSinkCreation", false);
Henrik Grunell 2016/07/04 14:24:59 Maybe add "Renderer" to be in line with other hist
o1ka 2016/07/06 13:17:30 Done.
return NewFinalAudioRendererSink(render_frame_id, session_id, device_id,
security_origin);
}

Powered by Google App Engine
This is Rietveld 408576698