Bug 1281793 - Remove some non-used telemetry IDs - part 7 - network/cache (2), r=mayhemer

This commit is contained in:
Andrea Marchesini
2016-06-29 15:19:13 +02:00
parent 6786e47191
commit cff7d88f71
7 changed files with 7 additions and 115 deletions

View File

@@ -1363,7 +1363,7 @@ nsDiskCacheMap::ResetCacheTimer(int32_t timeout)
void
nsDiskCacheMap::RevalidateTimerCallback(nsITimer *aTimer, void *arg)
{
nsCacheServiceAutoLock lock(LOCK_TELEM(NSDISKCACHEMAP_REVALIDATION));
nsCacheServiceAutoLock lock;
if (!nsCacheService::gService->mDiskDevice ||
!nsCacheService::gService->mDiskDevice->Initialized()) {
return;
@@ -1415,9 +1415,6 @@ nsDiskCacheMap::RevalidateCache()
// would help.
}
// We want this after the lock to prove that flushing a file isn't that expensive
Telemetry::AutoTimer<Telemetry::NETWORK_DISK_CACHE_REVALIDATION> totalTimer;
// If telemetry data shows it is worth it, we'll be flushing headers and
// records before flushing the clean cache file.