Lines Matching refs:stats
248 static void Clear(nsTraceRefcntStats* stats) {
249 stats->mAddRefs = 0;
250 stats->mReleases = 0;
251 stats->mCreates = 0;
252 stats->mDestroys = 0;
253 stats->mRefsOutstandingTotal = 0;
254 stats->mRefsOutstandingSquared = 0;
255 stats->mObjsOutstandingTotal = 0;
256 stats->mObjsOutstandingSquared = 0;
347 static PRBool HaveLeaks(nsTraceRefcntStats* stats) {
348 return ((stats->mAddRefs != stats->mReleases) ||
349 (stats->mCreates != stats->mDestroys));
362 nsTraceRefcntStats* stats = (type == nsTraceRefcntImpl::NEW_STATS) ? &mNewStats : &mAllStats;
363 if (gLogLeaksOnly && !HaveLeaks(stats)) {
368 NS_MeanAndStdDev(stats->mAddRefs + stats->mReleases,
369 stats->mRefsOutstandingTotal,
370 stats->mRefsOutstandingSquared,
374 NS_MeanAndStdDev(stats->mCreates + stats->mDestroys,
375 stats->mObjsOutstandingTotal,
376 stats->mObjsOutstandingSquared,
379 if ((stats->mAddRefs - stats->mReleases) != 0 ||
380 stats->mAddRefs != 0 ||
383 (stats->mCreates - stats->mDestroys) != 0 ||
384 stats->mCreates != 0 ||
391 ?(PRInt32)((stats->mCreates - stats->mDestroys) * mClassSize)
393 stats->mCreates,
394 (stats->mCreates - stats->mDestroys),
397 stats->mAddRefs,
398 (stats->mAddRefs - stats->mReleases),