Bug 1464909 - Add a dynamic profiler label to nsContentSink::StartLayout that includes the document URL. r?bzbarsky draft
authorMarkus Stange <mstange@themasta.com>
Mon, 28 May 2018 17:49:44 -0400
changeset 802984 c3d295acefe5320c38cdd3359b27c93ab71d57fa
parent 802983 17453521abd14516e7f4b4635b864d0cacc24498
child 802985 7352519d63c7cfdbd81bacaa05f0ef7e3e037282
push id112017
push userbmo:mstange@themasta.com
push dateFri, 01 Jun 2018 20:02:54 +0000
reviewersbzbarsky
bugs1464909
milestone62.0a1
Bug 1464909 - Add a dynamic profiler label to nsContentSink::StartLayout that includes the document URL. r?bzbarsky MozReview-Commit-ID: 4DpJxV4Wn49
dom/base/nsContentSink.cpp
--- a/dom/base/nsContentSink.cpp
+++ b/dom/base/nsContentSink.cpp
@@ -1230,16 +1230,19 @@ void
 nsContentSink::ScrollToRef()
 {
   mDocument->ScrollToRef();
 }
 
 void
 nsContentSink::StartLayout(bool aIgnorePendingSheets)
 {
+  AUTO_PROFILER_LABEL_DYNAMIC_NSCSTRING("nsContentSink::StartLayout", LAYOUT,
+                                        mDocumentURI->GetSpecOrDefault());
+
   if (mLayoutStarted) {
     // Nothing to do here
     return;
   }
 
   mDeferredLayoutStart = true;
 
   if (!aIgnorePendingSheets && WaitForPendingSheets()) {