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

Unified Diff: base/android/java/src/org/chromium/base/metrics/RecordHistogram.java

Issue 2930553002: Add UMA metric to track the time elapsed since a WebAPK was last launched (Closed)
Patch Set: Merge branch 'master' into last_launched2 Created 3 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
« no previous file with comments | « no previous file | base/android/record_histogram.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/metrics/RecordHistogram.java
diff --git a/base/android/java/src/org/chromium/base/metrics/RecordHistogram.java b/base/android/java/src/org/chromium/base/metrics/RecordHistogram.java
index eaf57b7ce7b346c90a4ecbe4e67ab5358872a17a..b3667c5515312374d9e8c4fbf1008edb8ed10985 100644
--- a/base/android/java/src/org/chromium/base/metrics/RecordHistogram.java
+++ b/base/android/java/src/org/chromium/base/metrics/RecordHistogram.java
@@ -269,6 +269,15 @@ public class RecordHistogram {
return nativeGetHistogramValueCountForTesting(name, sample);
}
+ /**
+ * Returns the number of samples recorded for the given histogram.
+ * @param name name of the histogram to look up.
+ */
+ @VisibleForTesting
+ public static int getHistogramTotalCountForTesting(String name) {
+ return nativeGetHistogramTotalCountForTesting(name);
+ }
+
/**
* Initializes the metrics system.
*/
@@ -290,5 +299,6 @@ public class RecordHistogram {
private static native long nativeRecordSparseHistogram(String name, long key, int sample);
private static native int nativeGetHistogramValueCountForTesting(String name, int sample);
+ private static native int nativeGetHistogramTotalCountForTesting(String name);
private static native void nativeInitialize();
}
« no previous file with comments | « no previous file | base/android/record_histogram.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698