Use NSPR logging rather than printf's for stopwatch output.

This commit is contained in:
nisheeth@netscape.com
1999-09-24 08:57:36 +00:00
parent d7a8b61fd4
commit e99f7f9cef
8 changed files with 26 additions and 26 deletions

View File

@@ -2095,7 +2095,7 @@ nsWebShell::DoLoadURL(nsIURI * aUri,
nsresult rv = NS_OK;
rv = aUri->GetSpec(&url);
if (NS_SUCCEEDED(rv)) {
printf("*** Timing layout processes on url: '%s'\n", url);
RAPTOR_STOPWATCH_TRACE(("*** Timing layout processes on url: '%s'\n", url));
delete [] url;
}
}
@@ -3356,9 +3356,9 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader,
{
#ifdef RAPTOR_PERF_METRICS
NS_STOP_STOPWATCH(mTotalTime)
printf("Total Layout+Load Time: ");
RAPTOR_STOPWATCH_TRACE(("Total (Layout + Page Load) Time: "));
mTotalTime.Print();
printf("\n");
RAPTOR_STOPWATCH_TRACE(("\n"));
#endif
nsresult rv = NS_ERROR_FAILURE;