зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1629342 - Print string stats on process exit only if there is a leak. r=erahm,mccr8
I don't think anyone particularly cares about these stats. Differential Revision: https://phabricator.services.mozilla.com/D70638 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
29c6b3234c
Коммит
396dcd374d
|
@ -62,6 +62,11 @@ class nsStringStats {
|
|||
return;
|
||||
}
|
||||
|
||||
// Only print the stats if we detect a leak.
|
||||
if (mAllocCount <= mFreeCount && mAdoptCount <= mAdoptFreeCount) {
|
||||
return;
|
||||
}
|
||||
|
||||
printf("nsStringStats\n");
|
||||
printf(" => mAllocCount: % 10d\n", int(mAllocCount));
|
||||
printf(" => mReallocCount: % 10d\n", int(mReallocCount));
|
||||
|
|
Загрузка…
Ссылка в новой задаче