void Dump(int aIndex, FILE* aOut) { if (gLogLeaksOnly && !mStats.HaveLeaks()) { return; } if (mStats.HaveLeaks() || mStats.mCreates != 0) { fprintf(aOut, "%4d |%-38.38s| %8d %8" PRId64 "|%8" PRIu64 " %8" PRId64"|\n", aIndex + 1, mClassName, GetClassSize(), nsCRT::strcmp(mClassName, "TOTAL") ? (mStats.NumLeaked() * GetClassSize()) : mTotalLeaked, mStats.mCreates, mStats.NumLeaked()); } }
void Dump(int aIndex, FILE* aOut, nsTraceRefcnt::StatisticsType aType) { nsTraceRefcntStats* stats = (aType == nsTraceRefcnt::NEW_STATS) ? &mNewStats : &mAllStats; if (gLogLeaksOnly && !stats->HaveLeaks()) { return; } if (stats->HaveLeaks() || stats->mCreates != 0) { fprintf(aOut, "%4d |%-38.38s| %8d %8" PRId64 "|%8" PRIu64 " %8" PRId64"|\n", aIndex + 1, mClassName, GetClassSize(), nsCRT::strcmp(mClassName, "TOTAL") ? (stats->NumLeaked() * GetClassSize()) : mTotalLeaked, stats->mCreates, stats->NumLeaked()); } }