Bug 1464909 - Add the "GC / CC" category to IncrementalFinalizeRunnable::Run. r=smaug
☠☠ backed out by bc7e36fffaa7 ☠ ☠
authorMarkus Stange <mstange@themasta.com>
Thu, 31 May 2018 14:08:50 -0400
changeset 420809 119c2055e002d3239973b08b36b77383e384b423
parent 420808 562aeeced55b51d5dfe97d47426cdcfe5e5c0ee8
child 420810 e2087bd3daee2269846444950e7d9fae40f80f3a
push id103894
push usercsabou@mozilla.com
push dateFri, 01 Jun 2018 09:46:36 +0000
treeherdermozilla-inbound@e99ff79303ea [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1464909
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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);