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

Unified Diff: third_party/libjingle/overrides/init_webrtc.h

Issue 609353002: Wire up uma histograms with webrtc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new apis Created 6 years, 2 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 | third_party/libjingle/overrides/init_webrtc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libjingle/overrides/init_webrtc.h
diff --git a/third_party/libjingle/overrides/init_webrtc.h b/third_party/libjingle/overrides/init_webrtc.h
index c5c190c3350929e17d7daa688fd9bf7d5ef85e55..2dc611905ec6286c943bef3def62dfe14fdad455 100644
--- a/third_party/libjingle/overrides/init_webrtc.h
+++ b/third_party/libjingle/overrides/init_webrtc.h
@@ -23,10 +23,22 @@ class WebRtcVideoEncoderFactory;
namespace webrtc {
class AudioDeviceModule;
+namespace metrics {
+class Histogram;
+} // namespace metrics
} // namespace webrtc
typedef std::string (*FieldTrialFindFullName)(const std::string& trial_name);
+typedef webrtc::metrics::Histogram* (*RtcHistogramFactoryGetCounts)(
+ const std::string& name, int min, int max, int bucket_count);
+typedef webrtc::metrics::Histogram* (*RtcHistogramFactoryGetEnumeration)(
+ const std::string& name, int boundary);
+typedef void (*RtcHistogramAdd)(
+ webrtc::metrics::Histogram* histogram_pointer,
+ const std::string& name,
+ int sample);
+
typedef cricket::MediaEngineInterface* (*CreateWebRtcMediaEngineFunction)(
webrtc::AudioDeviceModule* adm,
webrtc::AudioDeviceModule* adm_sc,
@@ -51,6 +63,9 @@ typedef bool (*InitializeModuleFunction)(
DellocateFunction dealloc,
#endif
FieldTrialFindFullName field_trial_find,
+ RtcHistogramFactoryGetCounts factory_get_counts,
+ RtcHistogramFactoryGetEnumeration factory_get_enumeration,
+ RtcHistogramAdd histogram_add,
logging::LogMessageHandlerFunction log_handler,
webrtc::GetCategoryEnabledPtr trace_get_category_enabled,
webrtc::AddTraceEventPtr trace_add_trace_event,
« no previous file with comments | « no previous file | third_party/libjingle/overrides/init_webrtc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698