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

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

Issue 2168123002: [CacheStorage] Add metrics to the scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add unit Created 4 years, 5 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
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/metrics/histograms/histograms.xml
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index 010fe1d1724578b1ac3ecf5bfa725cdd5c963f28..b0123ddd5b975961e83db3915dc330b6824f737e 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -52144,6 +52144,36 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</summary>
</histogram>
+<histogram name="ServiceWorkerCache.Scheduler.IsOperationSlow" enum="Boolean">
+ <owner>jkarlin@chromium.org</owner>
+ <summary>
+ An operation is slow (true) if it takes at least 10 seconds to run. If an
+ operation never completes, it will still be recorded as slow.
+ </summary>
+</histogram>
+
+<histogram name="ServiceWorkerCache.Scheduler.OperationDuration" units="ms">
+ <owner>jkarlin@chromium.org</owner>
+ <summary>
+ The time in ms from when an operation is started until it completes.
+ </summary>
+</histogram>
+
+<histogram name="ServiceWorkerCache.Scheduler.QueueDuration" units="ms">
+ <owner>jkarlin@chromium.org</owner>
+ <summary>
+ The time in ms from when an operation was queued until its task is posted.
+ </summary>
+</histogram>
+
+<histogram name="ServiceWorkerCache.Scheduler.QueueLength" units="operations">
+ <owner>jkarlin@chromium.org</owner>
+ <summary>
+ The number of operations in the scheduling queue just before enqueuing a new
+ operation.
+ </summary>
+</histogram>
+
<histogram name="Session.TotalDuration" units="ms">
<owner>mariakhomenko@chromium.org</owner>
<owner>fqian@chromium.org</owner>
@@ -100917,6 +100947,18 @@ To add a new entry, add it with any value and run test to compute valid value.
<affected-histogram name="ServiceWorkerCache.CacheStorage"/>
</histogram_suffixes>
+<histogram_suffixes name="ServiceWorkerScheduler" separator="."
+ ordering="prefix">
+ <suffix name="CacheStorage" label="Collected from a CacheStorage instance"/>
+ <suffix name="Cache" label="Collected from a CacheStorageCache instance"/>
+ <suffix name="BackgroundSyncManager"
+ label="Collected from a BackgroundSyncManager instance"/>
+ <affected-histogram name="ServiceWorkerCache.Scheduler.IsOperationSlow"/>
+ <affected-histogram name="ServiceWorkerCache.Scheduler.OperationDuration"/>
+ <affected-histogram name="ServiceWorkerCache.Scheduler.QueueDuration"/>
+ <affected-histogram name="ServiceWorkerCache.Scheduler.QueueLength"/>
+</histogram_suffixes>
+
<histogram_suffixes name="ServiceWorkerSpecialApps" separator=".">
<suffix name="inbox" label="Custom histogram for Inbox"/>
<affected-histogram
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698