Bug 1065122 - Count ProfilerBacktrace ctor/dtor. r=trivial

--HG--
extra : rebase_source : 2bfe5cd0e57136e6841e0829be882d0a8f3cd3e8
This commit is contained in:
Benoit Girard 2014-09-16 15:35:55 -04:00
parent 5ab2b0c28e
commit 69f454387f

View File

@ -12,11 +12,13 @@
ProfilerBacktrace::ProfilerBacktrace(SyncProfile* aProfile)
: mProfile(aProfile)
{
MOZ_COUNT_CTOR(ProfilerBacktrace);
MOZ_ASSERT(aProfile);
}
ProfilerBacktrace::~ProfilerBacktrace()
{
MOZ_COUNT_DTOR(ProfilerBacktrace);
if (mProfile->ShouldDestroy()) {
delete mProfile;
}