Bug 892486 - Telemetry for appcache vs http cache page load, r=ehsan

This commit is contained in:
Honza Bambas 2013-07-16 19:38:15 +02:00
parent c58af80dce
commit e4b77b101d
2 changed files with 10 additions and 0 deletions
netwerk/protocol/http
toolkit/components/telemetry

@ -2548,6 +2548,12 @@ nsHttpChannel::OpenCacheEntry(bool usingSSL)
}
}
if (mLoadFlags & LOAD_INITIAL_DOCUMENT_URI) {
mozilla::Telemetry::Accumulate(
Telemetry::HTTP_OFFLINE_CACHE_DOCUMENT_LOAD,
!!mApplicationCache);
}
nsCOMPtr<nsICacheSession> session;
// If we have an application cache, we check it first.

@ -1067,6 +1067,10 @@
"n_values": 5,
"description": "HTTP Offline Cache Hit, Reval, Failed-Reval, Miss"
},
"HTTP_OFFLINE_CACHE_DOCUMENT_LOAD": {
"kind": "boolean",
"description": "Rate of page load from offline cache"
},
"CACHE_DEVICE_SEARCH_2": {
"kind": "exponential",
"high": "10000",