Add the GC / CC category to IncrementalFinalizeRunnable::Run. draft
authorMarkus Stange <mstange@themasta.com>
Tue, 22 May 2018 18:00:49 -0400
changeset 798871 96e1ffc1d52d9c1eca406162bdc118c69163d5c9
parent 798870 bb47dabd4de0aeb1017cb7d90a9d499b8a7d34e0
child 798872 64bca5e04dd0ef05dc23339b28191cd4d4c09c69
push id110860
push userbmo:mstange@themasta.com
push dateWed, 23 May 2018 16:14:08 +0000
milestone62.0a1
Add the GC / CC category to IncrementalFinalizeRunnable::Run.
xpcom/base/CycleCollectedJSRuntime.cpp
--- a/xpcom/base/CycleCollectedJSRuntime.cpp
+++ b/xpcom/base/CycleCollectedJSRuntime.cpp
@@ -1400,16 +1400,18 @@ IncrementalFinalizeRunnable::ReleaseNow(
     // NB: This may delete this!
     mRuntime->mFinalizeRunnable = nullptr;
   }
 }
 
 NS_IMETHODIMP
 IncrementalFinalizeRunnable::Run()
 {
+  AUTO_PROFILER_LABEL("IncrementalFinalizeRunnable::Run", GCCC);
+      
   if (mRuntime->mFinalizeRunnable != this) {
     /* These items were already processed synchronously in JSGC_END. */
     MOZ_ASSERT(!mDeferredFinalizeFunctions.Length());
     return NS_OK;
   }
 
   TimeStamp start = TimeStamp::Now();
   ReleaseNow(true);