Bug 1464909 - Add the "GC / CC" category to IncrementalFinalizeRunnable::Run. r?smaug draft
authorMarkus Stange <mstange@themasta.com>
Thu, 31 May 2018 14:08:50 -0400
changeset 802987 9cb99ae35a3b100e12c4bc2fd5159c091f9d6c33
parent 802986 bb642807f287d0690525012f1052ee07a4935d99
push id112017
push userbmo:mstange@themasta.com
push dateFri, 01 Jun 2018 20:02:54 +0000
reviewerssmaug
bugs1464909
milestone62.0a1
Bug 1464909 - Add the "GC / CC" category to IncrementalFinalizeRunnable::Run. r?smaug MozReview-Commit-ID: nRSVnJVNTj
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);