summaryrefslogtreecommitdiffstats
path: root/netwerk/cache2/CacheObserver.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-09-29 22:56:15 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-09-29 22:56:15 +0200
commit0b16007427aac4bb94643c6ea4cc79b81010765a (patch)
treeb53266233b12724adb28213765e5abc89af8df53 /netwerk/cache2/CacheObserver.cpp
parent347aea437facd5324b3d8d27c587d8054e9b8b9a (diff)
downloadUXP-0b16007427aac4bb94643c6ea4cc79b81010765a.tar
UXP-0b16007427aac4bb94643c6ea4cc79b81010765a.tar.gz
UXP-0b16007427aac4bb94643c6ea4cc79b81010765a.tar.lz
UXP-0b16007427aac4bb94643c6ea4cc79b81010765a.tar.xz
UXP-0b16007427aac4bb94643c6ea4cc79b81010765a.zip
Remove telemetry to find optimal cache entry hash size
Tag #21.
Diffstat (limited to 'netwerk/cache2/CacheObserver.cpp')
-rw-r--r--netwerk/cache2/CacheObserver.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/netwerk/cache2/CacheObserver.cpp b/netwerk/cache2/CacheObserver.cpp
index 6b6d89395..51afaf3a1 100644
--- a/netwerk/cache2/CacheObserver.cpp
+++ b/netwerk/cache2/CacheObserver.cpp
@@ -89,9 +89,6 @@ bool CacheObserver::sClearCacheOnShutdown = kDefaultClearCacheOnShutdown;
static bool kDefaultCacheFSReported = false;
bool CacheObserver::sCacheFSReported = kDefaultCacheFSReported;
-static bool kDefaultHashStatsReported = false;
-bool CacheObserver::sHashStatsReported = kDefaultHashStatsReported;
-
static uint32_t const kDefaultMaxShutdownIOLag = 2; // seconds
Atomic<uint32_t, Relaxed> CacheObserver::sMaxShutdownIOLag(kDefaultMaxShutdownIOLag);
@@ -357,32 +354,6 @@ CacheObserver::StoreCacheFSReported()
}
// static
-void
-CacheObserver::SetHashStatsReported()
-{
- sHashStatsReported = true;
-
- if (!sSelf) {
- return;
- }
-
- if (NS_IsMainThread()) {
- sSelf->StoreHashStatsReported();
- } else {
- nsCOMPtr<nsIRunnable> event =
- NewRunnableMethod(sSelf, &CacheObserver::StoreHashStatsReported);
- NS_DispatchToMainThread(event);
- }
-}
-
-void
-CacheObserver::StoreHashStatsReported()
-{
- mozilla::Preferences::SetInt("browser.cache.disk.hashstats_reported",
- sHashStatsReported);
-}
-
-// static
void CacheObserver::ParentDirOverride(nsIFile** aDir)
{
if (NS_WARN_IF(!aDir))