summaryrefslogtreecommitdiffstats
path: root/netwerk/cache2/CacheIndex.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-09-30 04:39:37 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-09-30 04:39:37 +0200
commitab9edfb54bb985e683c318bbd7e4c3594d8e6df2 (patch)
tree2412275b845353d4f939f6f61c326d488e2d7347 /netwerk/cache2/CacheIndex.cpp
parent3343a4b4744b6c78d1f3d0c3f111e1adfddc18a5 (diff)
downloadUXP-ab9edfb54bb985e683c318bbd7e4c3594d8e6df2.tar
UXP-ab9edfb54bb985e683c318bbd7e4c3594d8e6df2.tar.gz
UXP-ab9edfb54bb985e683c318bbd7e4c3594d8e6df2.tar.lz
UXP-ab9edfb54bb985e683c318bbd7e4c3594d8e6df2.tar.xz
UXP-ab9edfb54bb985e683c318bbd7e4c3594d8e6df2.zip
Remove telemetry probes to get detailed disk cache hit rate.
Tag #21.
Diffstat (limited to 'netwerk/cache2/CacheIndex.cpp')
-rw-r--r--netwerk/cache2/CacheIndex.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/netwerk/cache2/CacheIndex.cpp b/netwerk/cache2/CacheIndex.cpp
index c85d271cc..2c6451d72 100644
--- a/netwerk/cache2/CacheIndex.cpp
+++ b/netwerk/cache2/CacheIndex.cpp
@@ -1294,29 +1294,6 @@ CacheIndex::GetCacheSize(uint32_t *_retval)
// static
nsresult
-CacheIndex::GetEntryFileCount(uint32_t *_retval)
-{
- LOG(("CacheIndex::GetEntryFileCount()"));
-
- StaticMutexAutoLock lock(sLock);
-
- RefPtr<CacheIndex> index = gInstance;
-
- if (!index) {
- return NS_ERROR_NOT_INITIALIZED;
- }
-
- if (!index->IsIndexUsable()) {
- return NS_ERROR_NOT_AVAILABLE;
- }
-
- *_retval = index->mIndexStats.ActiveEntriesCount();
- LOG(("CacheIndex::GetEntryFileCount() - returning %u", *_retval));
- return NS_OK;
-}
-
-// static
-nsresult
CacheIndex::GetCacheStats(nsILoadContextInfo *aInfo, uint32_t *aSize, uint32_t *aCount)
{
LOG(("CacheIndex::GetCacheStats() [info=%p]", aInfo));