blob: 5a2bfa4e3bd5f6401703c23058f040a5c4cde4f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#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::SingleProcessProfilePromiseAndChildPid>
ProfilerParent::GatherProfiles() {
nsTArray<SingleProcessProfilePromiseAndChildPid> results;
if (!NS_IsMainThread()) {
|