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

Unified Diff: tools/metrics/histograms/histograms.xml

Issue 2676403003: IndexedDB: Add histograms for key type (Closed)
Patch Set: Incorporate review feedback Created 3 years, 10 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:
Download patch
Index: tools/metrics/histograms/histograms.xml
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index 4400ab149aff1b051521b1e463b5e4a144f509e0..2fa3cb2ce9e162aa2e55570c835d9677e4fe1d5b 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -74494,6 +74494,26 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</summary>
</histogram>
+<histogram name="WebCore.IndexedDB.ObjectStore.IndexEntry.KeyType"
+ enum="IDBKeyType">
+ <owner>jsbell@chromium.org</owner>
+ <summary>
+ The type of key (number, string, etc.) used for an index entry for a record
+ being newly stored or updated in an Indexed DB object store. For array keys,
+ the types of sub-keys are not recorded.
+ </summary>
+</histogram>
+
+<histogram name="WebCore.IndexedDB.ObjectStore.Record.KeyType"
+ enum="IDBKeyType">
+ <owner>jsbell@chromium.org</owner>
+ <summary>
+ The type of key (number, string, etc.) used for a record being newly stored
+ or updated in an Indexed DB object store. For array keys, the types of
+ sub-keys are not recorded.
+ </summary>
+</histogram>
+
<histogram name="WebCore.IndexedDB.OpenTime.Blocked" units="ms">
<owner>cmumford@chromium.org</owner>
<summary>
@@ -93700,6 +93720,15 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
<int value="2" label="Array">Key path is an array of strings.</int>
</enum>
+<enum name="IDBKeyType" type="int">
+ <int value="0" label="Invalid">Invalid key.</int>
+ <int value="1" label="Array">Key is an array.</int>
+ <int value="2" label="Binary">Key is a binary buffer.</int>
+ <int value="3" label="String">Key is a string.</int>
+ <int value="4" label="Date">Key is a date.</int>
+ <int value="5" label="Number">Key is a number.</int>
+</enum>
+
<enum name="IDBLevelDBBackingStoreInternalErrorType" type="int">
<int value="0" label="IDBLevelDBBackingStoreReadError">
IndexedDB encountered an error attempting to read or decode a value from the

Powered by Google App Engine
This is Rietveld 408576698