mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
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:
parent
e30db55579
commit
61d2ba839d
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user