Bug 1414345 - Part 2: Add AutoProfilerLabels for all Frame Construction paths r=mstange

MozReview-Commit-ID: 4n65jAonwmA

--HG--
extra : rebase_source : 955b70ecfb7d3ee3be2083ee440fb3f6a1ddb751
This commit is contained in:
Nazım Can Altınova 2018-07-26 16:31:54 +02:00
Родитель 3fd33618c3
Коммит dc5644dbb4
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -2676,6 +2676,7 @@ nsCSSFrameConstructor::ConstructDocElementFrame(Element* aDocEle
nsIFrame*
nsCSSFrameConstructor::ConstructRootFrame()
{
AUTO_PROFILER_LABEL("nsCSSFrameConstructor::ConstructRootFrame", LAYOUT);
AUTO_PROFILER_TRACING("Frame Construction", "ConstructRootFrame");
AUTO_LAYOUT_PHASE_ENTRY_POINT(mPresShell->GetPresContext(), FrameC);
@ -6922,6 +6923,7 @@ nsCSSFrameConstructor::ContentAppended(nsIContent* aFirstNewContent,
MOZ_ASSERT(aInsertionKind == InsertionKind::Sync ||
!RestyleManager()->IsInStyleRefresh());
AUTO_PROFILER_LABEL("nsCSSFrameConstructor::ContentAppended", LAYOUT);
AUTO_PROFILER_TRACING("Frame Construction", "ContentAppended");
AUTO_LAYOUT_PHASE_ENTRY_POINT(mPresShell->GetPresContext(), FrameC);
@ -7230,6 +7232,7 @@ nsCSSFrameConstructor::ContentRangeInserted(nsIContent* aStartChild,
MOZ_ASSERT(aInsertionKind == InsertionKind::Sync ||
!RestyleManager()->IsInStyleRefresh());
AUTO_PROFILER_LABEL("nsCSSFrameConstructor::ContentRangeInserted", LAYOUT);
AUTO_PROFILER_TRACING("Frame Construction", "ContentRangeInserted");
AUTO_LAYOUT_PHASE_ENTRY_POINT(mPresShell->GetPresContext(), FrameC);
@ -7673,6 +7676,7 @@ nsCSSFrameConstructor::ContentRemoved(nsIContent* aChild,
MOZ_ASSERT(aChild);
MOZ_ASSERT(!aChild->IsRootOfAnonymousSubtree() || !aOldNextSibling,
"Anonymous roots don't have siblings");
AUTO_PROFILER_LABEL("nsCSSFrameConstructor::ContentRemoved", LAYOUT);
AUTO_PROFILER_TRACING("Frame Construction", "ContentRemoved");
AUTO_LAYOUT_PHASE_ENTRY_POINT(mPresShell->GetPresContext(), FrameC);
nsPresContext* presContext = mPresShell->GetPresContext();
@ -8064,6 +8068,7 @@ void
nsCSSFrameConstructor::CharacterDataChanged(nsIContent* aContent,
const CharacterDataChangeInfo& aInfo)
{
AUTO_PROFILER_LABEL("nsCSSFrameConstructor::CharacterDataChanged", LAYOUT);
AUTO_PROFILER_TRACING("Frame Construction", "CharacterDataChanged");
AUTO_LAYOUT_PHASE_ENTRY_POINT(mPresShell->GetPresContext(), FrameC);