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

Unified Diff: third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp

Issue 1978403004: Add UMA histograms for WebAudio (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use CustomCountHistogram Created 4 years, 6 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: third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp b/third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp
index f534842b8b90013c45f7b1631aa74ea23f0da936..68a13022ec05b4533dae55196aae3d9487ef65c0 100644
--- a/third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp
@@ -24,6 +24,7 @@
#include "modules/webaudio/BiquadFilterNode.h"
#include "modules/webaudio/AudioBasicProcessorHandler.h"
+#include "platform/Histogram.h"
namespace blink {
@@ -136,6 +137,10 @@ bool BiquadFilterNode::setType(unsigned type)
if (type > BiquadProcessor::Allpass)
return false;
+ DEFINE_STATIC_LOCAL(EnumerationHistogram, filterTypeHistogram,
+ ("WebAudio.BiquadFilter.Type", BiquadProcessor::Allpass + 1));
+ filterTypeHistogram.count(type);
+
getBiquadProcessor()->setType(static_cast<BiquadProcessor::FilterType>(type));
return true;
}

Powered by Google App Engine
This is Rietveld 408576698