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

Unified Diff: webkit/appcache/appcache_histograms.cc

Issue 8572048: Histogram appcache task queue and run times. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « webkit/appcache/appcache_histograms.h ('k') | webkit/appcache/appcache_storage_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_histograms.cc
===================================================================
--- webkit/appcache/appcache_histograms.cc (revision 110360)
+++ webkit/appcache/appcache_histograms.cc (working copy)
@@ -23,4 +23,28 @@
result, NUM_CHECK_RESPONSE_RESULT_TYPES);
}
+// static
+void AppCacheHistograms::AddTaskQueueTimeSample(
+ const base::TimeDelta& duration) {
+ UMA_HISTOGRAM_TIMES("appcache.TaskQueueTime", duration);
+}
+
+// static
+void AppCacheHistograms::AddTaskRunTimeSample(
+ const base::TimeDelta& duration) {
+ UMA_HISTOGRAM_TIMES("appcache.TaskRunTime", duration);
+}
+
+// static
+void AppCacheHistograms::AddTaskCompletionTimeSample(
+ const base::TimeDelta& duration) {
+ UMA_HISTOGRAM_TIMES("appcache.TaskCompletionTime", duration);
+}
+
+// static
+void AppCacheHistograms::AddTaskCompletionRunTimeSample(
+ const base::TimeDelta& duration) {
+ UMA_HISTOGRAM_TIMES("appcache.TaskCompletionRunTime", duration);
+}
+
} // namespace appcache
« no previous file with comments | « webkit/appcache/appcache_histograms.h ('k') | webkit/appcache/appcache_storage_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698