Bug 1838584 - Implement stripped down destructor for ProfilerParent, if MOZ_GECKO_PROFILER is undefined. r=mstange

On platforms such as ppc64, MOZ_GECKO_PROFILER is not defined, leading to a busted build.
The destructor-implementation was hidden behind an MOZ_GECKO_PROFILER-ifdef.

Differential Revision: https://phabricator.services.mozilla.com/D181042
This commit is contained in:
M. Sirringhaus 2023-06-20 09:10:52 +00:00
parent e30db55579
commit 61d2ba839d

View File

@ -724,14 +724,18 @@ void ProfilerParent::Init() {
Unused << SendStop(); Unused << SendStop();
} }
#endif // MOZ_GECKO_PROFILER
ProfilerParent::~ProfilerParent() { ProfilerParent::~ProfilerParent() {
MOZ_COUNT_DTOR(ProfilerParent); MOZ_COUNT_DTOR(ProfilerParent);
MOZ_RELEASE_ASSERT(NS_IsMainThread()); MOZ_RELEASE_ASSERT(NS_IsMainThread());
#ifdef MOZ_GECKO_PROFILER
ProfilerParentTracker::StopTracking(this); ProfilerParentTracker::StopTracking(this);
#endif
} }
#ifdef MOZ_GECKO_PROFILER
/* static */ /* static */
nsTArray<ProfilerParent::SingleProcessProfilePromiseAndChildPid> nsTArray<ProfilerParent::SingleProcessProfilePromiseAndChildPid>
ProfilerParent::GatherProfiles() { ProfilerParent::GatherProfiles() {