mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Add prefix string to content creation timer output.
This commit is contained in:
parent
f5d9af7ae9
commit
f097b55cdb
@ -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…
Reference in New Issue
Block a user