Bug 705602 - Use mallocSizeOf in prefixset memory reporter. r=gpc.

This commit is contained in:
Nicholas Nethercote
2011-12-13 20:54:18 -08:00
parent 3bc10fc213
commit cb524624bc
5 changed files with 22 additions and 23 deletions

View File

@@ -3691,10 +3691,8 @@ nsUrlClassifierDBServiceWorker::LoadPrefixSet(nsCOMPtr<nsIFile> & aFile)
}
#ifdef DEBUG
PRUint32 size = 0;
rv = mPrefixSet->SizeOfIncludingThis(&size);
LOG(("SB tree done, size = %d bytes\n", size));
NS_ENSURE_SUCCESS(rv, rv);
LOG(("SB tree done, size = %d bytes\n",
mPrefixSet->SizeOfIncludingThis(moz_malloc_size_of)));
#endif
#if defined(PR_LOGGING)
if (LOG_ENABLED()) {