Add prefix string to content creation timer output.

This commit is contained in:
nisheeth%netscape.com 1999-09-21 06:24:58 +00:00
parent f5d9af7ae9
commit f097b55cdb
2 changed files with 10 additions and 8 deletions

View File

@ -1635,15 +1635,14 @@ nsresult
HTMLContentSink::Init(nsIDocument* aDoc,
nsIURI* aURL,
nsIWebShell* aContainer)
{
// NRA Dump document and stopwatch start info here
#ifdef DEBUG_nisheeth
{
#ifdef RAPTOR_PERF_METRICS
{
char* url;
nsresult rv = NS_OK;
rv = aURL->GetSpec(&url);
if (NS_SUCCEEDED(rv)) {
printf("Starting stopwatch for '%s'", url);
printf("*** Timing layout processes on url: '%s'\n", url);
delete [] url;
}
}
@ -1731,7 +1730,9 @@ HTMLContentSink::DidBuildModel(PRInt32 aQualityLevel)
// NRA Dump stopwatch stop info here
#ifdef RAPTOR_PERF_METRICS
NS_STOP_STOPWATCH(mWatch)
printf("Content creation time: ");
mWatch.Print();
printf("\n");
#endif
if (nsnull == mTitle) {

View File

@ -1635,15 +1635,14 @@ nsresult
HTMLContentSink::Init(nsIDocument* aDoc,
nsIURI* aURL,
nsIWebShell* aContainer)
{
// NRA Dump document and stopwatch start info here
#ifdef DEBUG_nisheeth
{
#ifdef RAPTOR_PERF_METRICS
{
char* url;
nsresult rv = NS_OK;
rv = aURL->GetSpec(&url);
if (NS_SUCCEEDED(rv)) {
printf("Starting stopwatch for '%s'", url);
printf("*** Timing layout processes on url: '%s'\n", url);
delete [] url;
}
}
@ -1731,7 +1730,9 @@ HTMLContentSink::DidBuildModel(PRInt32 aQualityLevel)
// NRA Dump stopwatch stop info here
#ifdef RAPTOR_PERF_METRICS
NS_STOP_STOPWATCH(mWatch)
printf("Content creation time: ");
mWatch.Print();
printf("\n");
#endif
if (nsnull == mTitle) {