Bug 1822561 - Distinguish profiler markers for interruptible vs sync reflows. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D173636
This commit is contained in:
Jonathan Kew
2023-03-26 18:14:05 +00:00
parent 380cc21a33
commit 1a14fa1839

View File

@@ -9525,8 +9525,8 @@ bool PresShell::DoReflow(nsIFrame* target, bool aInterruptible,
innerWindowID = Some(window->WindowID());
}
AutoProfilerTracing tracingLayoutFlush(
"Paint", "Reflow", geckoprofiler::category::LAYOUT,
std::move(mReflowCause), innerWindowID);
"Paint", aInterruptible ? "Reflow (interruptible)" : "Reflow (sync)",
geckoprofiler::category::LAYOUT, std::move(mReflowCause), innerWindowID);
mReflowCause = nullptr;
FlushPendingScrollAnchorSelections();