From f4978ecd63a4fc39878a45beca1493598c441182 Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Fri, 18 May 2018 17:46:59 -0400 Subject: [PATCH] Bug 1462784 - Annotate layout-related stacks with the LAYOUT category instead of the GRAPHICS category. r=njn MozReview-Commit-ID: 77lvtLaxgEE --HG-- extra : rebase_source : 4490268f02b60919d3c958e07afb7e3963b611c5 --- layout/base/PresShell.cpp | 4 ++-- layout/base/nsLayoutUtils.cpp | 4 ++-- layout/base/nsRefreshDriver.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layout/base/PresShell.cpp b/layout/base/PresShell.cpp index 1daa406ab6e5..092a5573aae8 100644 --- a/layout/base/PresShell.cpp +++ b/layout/base/PresShell.cpp @@ -4188,7 +4188,7 @@ PresShell::DoFlushPendingNotifications(mozilla::ChangesToFlush aFlush) "Display" }; AUTO_PROFILER_LABEL_DYNAMIC_CSTR("PresShell::DoFlushPendingNotifications", - GRAPHICS, flushTypeNames[flushType]); + LAYOUT, flushTypeNames[flushType]); #endif @@ -8849,7 +8849,7 @@ PresShell::DoReflow(nsIFrame* target, bool aInterruptible) #ifdef MOZ_GECKO_PROFILER nsIURI* uri = mDocument->GetDocumentURI(); AUTO_PROFILER_LABEL_DYNAMIC_NSCSTRING( - "PresShell::DoReflow", GRAPHICS, + "PresShell::DoReflow", LAYOUT, uri ? uri->GetSpecOrDefault() : NS_LITERAL_CSTRING("N/A")); #endif diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index f07813a589ca..590b3fa78ad4 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -3111,7 +3111,7 @@ struct AutoNestedPaintCount { nsIFrame* nsLayoutUtils::GetFrameForPoint(nsIFrame* aFrame, nsPoint aPt, uint32_t aFlags) { - AUTO_PROFILER_LABEL("nsLayoutUtils::GetFrameForPoint", GRAPHICS); + AUTO_PROFILER_LABEL("nsLayoutUtils::GetFrameForPoint", LAYOUT); nsresult rv; AutoTArray outFrames; @@ -3125,7 +3125,7 @@ nsLayoutUtils::GetFramesForArea(nsIFrame* aFrame, const nsRect& aRect, nsTArray &aOutFrames, uint32_t aFlags) { - AUTO_PROFILER_LABEL("nsLayoutUtils::GetFramesForArea", GRAPHICS); + AUTO_PROFILER_LABEL("nsLayoutUtils::GetFramesForArea", LAYOUT); nsDisplayListBuilder builder(aFrame, nsDisplayListBuilderMode::EVENT_DELIVERY, diff --git a/layout/base/nsRefreshDriver.cpp b/layout/base/nsRefreshDriver.cpp index d50dfa1bdc77..a95f6309a23b 100644 --- a/layout/base/nsRefreshDriver.cpp +++ b/layout/base/nsRefreshDriver.cpp @@ -1763,7 +1763,7 @@ nsRefreshDriver::Tick(int64_t aNowEpoch, TimeStamp aNowTime) return; } - AUTO_PROFILER_LABEL("nsRefreshDriver::Tick", GRAPHICS); + AUTO_PROFILER_LABEL("nsRefreshDriver::Tick", LAYOUT); // We're either frozen or we were disconnected (likely in the middle // of a tick iteration). Just do nothing here, since our