[network] cache memory reporter cleanup

This commit is contained in:
Moonchild 2022-02-11 13:20:09 +00:00 committed by roytam1
commit 232f5a4705
2 changed files with 5 additions and 4 deletions

View file

@ -2031,6 +2031,8 @@ NS_IMETHODIMP
CacheStorageService::CollectReports(nsIHandleReportCallback* aHandleReport,
nsISupports* aData, bool aAnonymize)
{
MutexAutoLock lock(mLock);
MOZ_COLLECT_REPORT(
"explicit/network/cache2/io", KIND_HEAP, UNITS_BYTES,
CacheFileIOManager::SizeOfIncludingThis(MallocSizeOf),
@ -2041,8 +2043,6 @@ CacheStorageService::CollectReports(nsIHandleReportCallback* aHandleReport,
CacheIndex::SizeOfIncludingThis(MallocSizeOf),
"Memory used by the cache index.");
MutexAutoLock lock(mLock);
// Report the service instance, this doesn't report entries, done lower
MOZ_COLLECT_REPORT(
"explicit/network/cache2/service", KIND_HEAP, UNITS_BYTES,