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:
parent
e671c66537
commit
04e852e516
@ -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) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user