diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index f73bb9d7dafc..eee7ae27a621 100644 --- a/layout/base/nsPresShell.cpp +++ b/layout/base/nsPresShell.cpp @@ -1178,7 +1178,9 @@ PresShell::EndLoad(nsIDocument *aDocument) nsresult rv = NS_OK; nsCOMPtr watch = do_QueryInterface(mStyleSet, &rv); if (NS_SUCCEEDED(rv) && watch) { + printf("Style resolution time: "); watch->PrintTimer(NS_TIMER_STYLE_RESOLUTION); + printf("\n"); } #endif return NS_OK; diff --git a/layout/html/base/src/nsPresShell.cpp b/layout/html/base/src/nsPresShell.cpp index f73bb9d7dafc..eee7ae27a621 100644 --- a/layout/html/base/src/nsPresShell.cpp +++ b/layout/html/base/src/nsPresShell.cpp @@ -1178,7 +1178,9 @@ PresShell::EndLoad(nsIDocument *aDocument) nsresult rv = NS_OK; nsCOMPtr watch = do_QueryInterface(mStyleSet, &rv); if (NS_SUCCEEDED(rv) && watch) { + printf("Style resolution time: "); watch->PrintTimer(NS_TIMER_STYLE_RESOLUTION); + printf("\n"); } #endif return NS_OK;