mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00
Bug 892486 - Telemetry for appcache vs http cache page load, r=ehsan
This commit is contained in:
parent
c58af80dce
commit
e4b77b101d
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user