Bug 1504742 - Add LAYOUT category for presshell destruction stacks. r=mattwoodrow
authorMarkus Stange <mstange@themasta.com>
Mon, 05 Nov 2018 19:16:22 +0000
changeset 444458 52b0259b5c089f19b163630032e7bddd32330972
parent 444457 723af5c4a100e82ec21605eac9367c2b8487a7e0
child 444459 b5d968d728ea6babb6ebaf0f377eaf45415a04e1
push id34996
push userrgurzau@mozilla.com
push dateTue, 06 Nov 2018 09:53:23 +0000
treeherdermozilla-central@e160f0a60e4f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs1504742
milestone65.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 1504742 - Add LAYOUT category for presshell destruction stacks. r=mattwoodrow Differential Revision: https://phabricator.services.mozilla.com/D10927
layout/base/PresShell.cpp
--- a/layout/base/PresShell.cpp
+++ b/layout/base/PresShell.cpp
@@ -1148,16 +1148,18 @@ PresShell::Destroy()
   // Do not add code before this line please!
   if (mHaveShutDown) {
     return;
   }
 
   NS_ASSERTION(!nsContentUtils::IsSafeToRunScript(),
     "destroy called on presshell while scripts not blocked");
 
+  AUTO_PROFILER_LABEL("PresShell::Destroy", LAYOUT);
+
   // dump out cumulative text perf metrics
   gfxTextPerfMetrics* tp;
   if (mPresContext && (tp = mPresContext->GetTextPerfMetrics())) {
     tp->Accumulate();
     if (tp->cumulative.numChars > 0) {
       LogTextPerfStats(tp, this, tp->cumulative, 0.0, eLog_totals, nullptr);
     }
   }