From be957dd7259060151ec294f1c19af166cf599c8d Mon Sep 17 00:00:00 2001 From: "nisheeth@netscape.com" Date: Tue, 21 Sep 1999 06:24:17 +0000 Subject: [PATCH] Add prefix string to style resolution timer output. --- layout/base/nsPresShell.cpp | 2 ++ layout/html/base/src/nsPresShell.cpp | 2 ++ 2 files changed, 4 insertions(+) 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;