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

Unified Diff: chrome/common/extensions/api/metrics_private.json

Issue 213433003: Add Sparse Histogram Support to metricsPrivate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR Feedback Created 6 years, 9 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: chrome/common/extensions/api/metrics_private.json
diff --git a/chrome/common/extensions/api/metrics_private.json b/chrome/common/extensions/api/metrics_private.json
index d1ee679780c6f663b1b7b4b1019637febeedf596..28edefe156078ea8fd1a71400c9fef3a08b004b0 100644
--- a/chrome/common/extensions/api/metrics_private.json
+++ b/chrome/common/extensions/api/metrics_private.json
@@ -148,6 +148,15 @@
]
},
{
+ "name": "recordSparseValue",
+ "type": "function",
+ "description": "Increments the count associated with |value| in the sparse histogram defined by the |metricName|.",
+ "parameters": [
+ {"name": "metricName", "type": "string"},
+ {"name": "value", "type": "integer"}
+ ]
+ },
+ {
"name": "recordValue",
"type": "function",
"description": "Adds a value to the given metric.",

Powered by Google App Engine
This is Rietveld 408576698