Add prefix string to content creation timer output.

git-svn-id: svn://10.0.0.236/trunk@48525 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nisheeth%netscape.com 1999-09-21 06:24:58 +00:00
parent e671c66537
commit 04e852e516
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) {