summaryrefslogtreecommitdiffstats
path: root/netwerk/cache2/CacheEntry.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/CacheEntry.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/CacheEntry.cpp')
-rw-r--r--netwerk/cache2/CacheEntry.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/netwerk/cache2/CacheEntry.cpp b/netwerk/cache2/CacheEntry.cpp
index b79bf7373..51e441aa7 100644
--- a/netwerk/cache2/CacheEntry.cpp
+++ b/netwerk/cache2/CacheEntry.cpp
@@ -419,11 +419,6 @@ bool CacheEntry::Load(bool aTruncate, bool aPriority)
{
mozilla::MutexAutoUnlock unlock(mLock);
- if (reportMiss) {
- CacheFileUtils::DetailedCacheHitTelemetry::AddRecord(
- CacheFileUtils::DetailedCacheHitTelemetry::MISS, mLoadStart);
- }
-
LOG((" performing load, file=%p", mFile.get()));
if (NS_SUCCEEDED(rv)) {
rv = mFile->Init(fileKey,
@@ -458,16 +453,6 @@ NS_IMETHODIMP CacheEntry::OnFileReady(nsresult aResult, bool aIsNew)
MOZ_ASSERT(!mLoadStart.IsNull());
- if (NS_SUCCEEDED(aResult)) {
- if (aIsNew) {
- CacheFileUtils::DetailedCacheHitTelemetry::AddRecord(
- CacheFileUtils::DetailedCacheHitTelemetry::MISS, mLoadStart);
- } else {
- CacheFileUtils::DetailedCacheHitTelemetry::AddRecord(
- CacheFileUtils::DetailedCacheHitTelemetry::HIT, mLoadStart);
- }
- }
-
// OnFileReady, that is the only code that can transit from LOADING
// to any follow-on state and can only be invoked ones on an entry.
// Until this moment there is no consumer that could manipulate