Bug 455508 - Perf test. Disable the time-based expiry of cache elements to see
☠☠ backed out by b36b723d881a ☠ ☠
authorJoe Drew <joe@drew.ca>
Sat, 17 Jan 2009 11:06:28 -0500
changeset 23872 bc77b82becfc
parent 23871 56f630c3bdf6
child 23874 b36b723d881a
push id4766
push userjdrew@mozilla.com
push dateSat, 17 Jan 2009 16:29:10 +0000
treeherdermozilla-central@bc77b82becfc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs455508
milestone1.9.2a1pre
Bug 455508 - Perf test. Disable the time-based expiry of cache elements to see if it has an effect. CLOSED TREE for perf tests.
modules/libpr0n/src/imgLoader.cpp
--- a/modules/libpr0n/src/imgLoader.cpp
+++ b/modules/libpr0n/src/imgLoader.cpp
@@ -529,19 +529,23 @@ nsresult imgLoader::InitCache()
   if (!gCacheObserver) 
     return NS_ERROR_OUT_OF_MEMORY;
   NS_ADDREF(gCacheObserver);
 
   os->AddObserver(gCacheObserver, "memory-pressure", PR_FALSE);
   os->AddObserver(gCacheObserver, "chrome-flush-skin-caches", PR_FALSE);
   os->AddObserver(gCacheObserver, "chrome-flush-caches", PR_FALSE);
 
+#if 0
   gCacheTracker = new imgCacheExpirationTracker();
   if (!gCacheTracker)
     return NS_ERROR_OUT_OF_MEMORY;
+#else
+  gCacheTracker = nsnull;
+#endif
 
   if (!sCache.Init())
       return NS_ERROR_OUT_OF_MEMORY;
   if (!sChromeCache.Init())
       return NS_ERROR_OUT_OF_MEMORY;
 
   nsCOMPtr<nsIPrefBranch> prefs = do_GetService(NS_PREFSERVICE_CONTRACTID, &rv); 
   if (NS_FAILED(rv))