diff options
author | jsbell <jsbell@chromium.org> | 2015-04-22 17:24:19 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-23 00:24:21 +0000 |
commit | a5dd3efc382391ec7527c574f6f2dca1bc2df108 (patch) | |
tree | c14d05201ffcf251f94d8c314a4551bd7d45851a /tools | |
parent | 51f0c8f9b5c9fa499191361a587972597cfacce7 (diff) | |
download | chromium_src-a5dd3efc382391ec7527c574f6f2dca1bc2df108.zip chromium_src-a5dd3efc382391ec7527c574f6f2dca1bc2df108.tar.gz chromium_src-a5dd3efc382391ec7527c574f6f2dca1bc2df108.tar.bz2 |
Indexed DB: Add histograms recording schema configuration
Track usage of object store and index properties such as key path
type and the autoIncrement, unique and multiEntry flags, to learn
about how frequenty these features are used in the wild.
Review URL: https://codereview.chromium.org/1051103003
Cr-Commit-Position: refs/heads/master@{#326413}
Diffstat (limited to 'tools')
-rw-r--r-- | tools/metrics/histograms/histograms.xml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml index 2e0e9c7..8550621 100644 --- a/tools/metrics/histograms/histograms.xml +++ b/tools/metrics/histograms/histograms.xml @@ -44403,6 +44403,49 @@ Therefore, the affected-histogram name has to have at least one dot in it. </summary> </histogram> +<histogram name="WebCore.IndexedDB.Schema.Index.KeyPathType" + enum="IDBKeyPathType"> + <owner>jsbell@chromium.org</owner> + <summary> + Records the 'keyPath' type (none, string, or array) during IDBObjectStore's + createIndex operation. See http://www.w3.org/TR/IndexedDB/ + </summary> +</histogram> + +<histogram name="WebCore.IndexedDB.Schema.Index.MultiEntry" enum="Boolean"> + <owner>jsbell@chromium.org</owner> + <summary> + Records the 'multiEntry' flag value during IDBObjectStore's createIndex + operation. See http://www.w3.org/TR/IndexedDB/ + </summary> +</histogram> + +<histogram name="WebCore.IndexedDB.Schema.Index.Unique" enum="Boolean"> + <owner>jsbell@chromium.org</owner> + <summary> + Records the 'unique' flag value during IDBObjectStore's createIndex + operation. See http://www.w3.org/TR/IndexedDB/ + </summary> +</histogram> + +<histogram name="WebCore.IndexedDB.Schema.ObjectStore.AutoIncrement" + enum="Boolean"> + <owner>jsbell@chromium.org</owner> + <summary> + Records the 'autoIncrement' flag value during IDBDatabase's + createObjectStore operation. See http://www.w3.org/TR/IndexedDB/ + </summary> +</histogram> + +<histogram name="WebCore.IndexedDB.Schema.ObjectStore.KeyPathType" + enum="IDBKeyPathType"> + <owner>jsbell@chromium.org</owner> + <summary> + Records the 'keyPath' type (none, string, or array) during IDBDatabase's + createObjectStore operation. See http://www.w3.org/TR/IndexedDB/ + </summary> +</histogram> + <histogram name="WebCore.PreloadDelayMs" units="milliseconds"> <owner>Please list the metric's owners. Add more owner tags as needed.</owner> <summary> @@ -53423,6 +53466,12 @@ Therefore, the affected-histogram name has to have at least one dot in it. </int> </enum> +<enum name="IDBKeyPathType" type="int"> + <int value="0" label="None">No key path.</int> + <int value="1" label="String">Key path is a string.</int> + <int value="2" label="Array">Key path is an array of strings.</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 |