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

Unified Diff: webkit/appcache/appcache_histograms.cc

Issue 10207020: Workaround for a crashing appcache bug seen on the crash servers (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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:
View side-by-side diff with in-line comments
Download patch
Index: webkit/appcache/appcache_histograms.cc
===================================================================
--- webkit/appcache/appcache_histograms.cc (revision 134562)
+++ 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
void AppCacheHistograms::CountCheckResponseResult(
CheckResponseResultType result) {
UMA_HISTOGRAM_ENUMERATION(
@@ -23,28 +21,35 @@
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::AddCompletionQueueTimeSample(
const base::TimeDelta& duration) {
UMA_HISTOGRAM_TIMES("appcache.CompletionQueueTime", duration);
}
-// static
void AppCacheHistograms::AddCompletionRunTimeSample(
const base::TimeDelta& duration) {
UMA_HISTOGRAM_TIMES("appcache.CompletionRunTime", duration);
}
+void AppCacheHistograms::AddMissingManifestEntrySample() {
+ UMA_HISTOGRAM_BOOLEAN("appcache.MissingManifestEntry", true);
+}
+
+void AppCacheHistograms::AddMissingManifstDetectedAtCallsite(
+ MissingManifestCallsiteType callsite) {
+ UMA_HISTOGRAM_ENUMERATION(
+ "appcache.MissingManifestDetectedAtCallsite",
+ callsite, NUM_MISSING_MANIFEST_CALLSITE_TYPES);
+}
+
} // namespace appcache

Powered by Google App Engine
This is Rietveld 408576698