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

Unified Diff: webrtc/system_wrappers/include/metrics_default.h

Issue 2320473002: Make UMA stats creation available in the Java interface. (Closed)
Patch Set: Move HistogramAdd from metrics.h to metrics_default.h. Created 4 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
Index: webrtc/system_wrappers/include/metrics_default.h
diff --git a/webrtc/system_wrappers/include/metrics_default.h b/webrtc/system_wrappers/include/metrics_default.h
index e4b790bc16f1896b797de344ea99723d3a5a005d..94ba3cda321b7e1abea52d04d29958efeae4e52e 100644
--- a/webrtc/system_wrappers/include/metrics_default.h
+++ b/webrtc/system_wrappers/include/metrics_default.h
@@ -18,6 +18,10 @@
namespace webrtc {
namespace metrics {
+// This class does not actually exist. It is casted to an implementation defined
+// pointer inside the functions.
+class Histogram;
+
struct SampleInfo {
SampleInfo(const std::string& name, int min, int max, size_t bucket_count);
~SampleInfo();
@@ -51,6 +55,9 @@ int NumSamples(const std::string& name);
// Returns the minimum sample value (or -1 if the histogram has no samples).
int MinSample(const std::string& name);
+// Function for adding a |sample| to a histogram without checkking the name.
+void HistogramAdd(Histogram* histogram_pointer, int sample);
+
} // namespace metrics
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698