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

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

Side-by-side diff isn't available for this file because of its large size.
Issue 2676403003: IndexedDB: Add histograms for key type (Closed)
Patch Set: Record index key types too 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..dc4d88a69a7e6ffb6953a0874a6c13fe2c990ab2 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -74494,6 +74494,24 @@ 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 stored/updated in an Indexed DB object store.
Mark P 2017/02/07 19:12:22 Recorded upon any time an item is stored or update
jsbell 2017/02/07 19:54:57 Yes. Made it "newly stored or updated"
+ </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
+ stored/updated in an Indexed DB object store.
+ </summary>
+</histogram>
+
<histogram name="WebCore.IndexedDB.OpenTime.Blocked" units="ms">
<owner>cmumford@chromium.org</owner>
<summary>
@@ -93700,6 +93718,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 of other keys.</int>
Mark P 2017/02/07 19:12:22 nit: does "of other keys" add anything here?
jsbell 2017/02/07 19:54:56 Not really. Dropped it.
+ <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