#from: https://phabricator.services.mozilla.com/D181042 diff --git a/tools/profiler/gecko/ProfilerParent.cpp b/tools/profiler/gecko/ProfilerParent.cpp --- a/tools/profiler/gecko/ProfilerParent.cpp +++ b/tools/profiler/gecko/ProfilerParent.cpp @@ -722,18 +722,22 @@ } } Unused << SendStop(); } +#endif // MOZ_GECKO_PROFILER ProfilerParent::~ProfilerParent() { MOZ_COUNT_DTOR(ProfilerParent); MOZ_RELEASE_ASSERT(NS_IsMainThread()); +#ifdef MOZ_GECKO_PROFILER ProfilerParentTracker::StopTracking(this); +#endif } +#ifdef MOZ_GECKO_PROFILER /* static */ nsTArray ProfilerParent::GatherProfiles() { nsTArray results; if (!NS_IsMainThread()) {