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

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
Index: webkit/appcache/appcache_histograms.cc
===================================================================
--- webkit/appcache/appcache_histograms.cc (revision 110360)
+++ webkit/appcache/appcache_histograms.cc (working copy)
@@ -8,14 +8,12 @@
namespace appcache {
-// static
void AppCacheHistograms::CountInitResult(InitResultType init_result) {
UMA_HISTOGRAM_ENUMERATION(
"appcache.InitResult",
init_result, NUM_INIT_RESULT_TYPES);
}
-// static
rvargas (doing something else) 2011/11/17 03:42:05 nit: I'd prefer to keep the comment. I don't know
michaeln 2011/11/17 03:59:47 Done.
void AppCacheHistograms::CountCheckResponseResult(
CheckResponseResultType result) {
UMA_HISTOGRAM_ENUMERATION(
@@ -23,4 +21,19 @@
result, NUM_CHECK_RESPONSE_RESULT_TYPES);
}
+void AppCacheHistograms::AddTaskQueueTimeSample(
+ const base::TimeDelta& duration) {
+ UMA_HISTOGRAM_TIMES("appcache.TaskQueueTime", duration);
+}
+
+void AppCacheHistograms::AddTaskRunTimeSample(
+ const base::TimeDelta& duration) {
+ UMA_HISTOGRAM_TIMES("appcache.TaskRunTime", duration);
+}
+
+void AppCacheHistograms::AddTaskCompletionTimeSample(
+ const base::TimeDelta& duration) {
+ UMA_HISTOGRAM_TIMES("appcache.TaskCompletionTime", duration);
+}
+
} // namespace appcache

Powered by Google App Engine
This is Rietveld 408576698