improve debug timing code for ongoing perf work; not enabled in normal build. r=peterl
git-svn-id: svn://10.0.0.236/trunk@50937 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -81,13 +81,14 @@ static eHTMLTags gWhitespaceTags[]={
|
||||
#include "nsElementTable.h"
|
||||
|
||||
|
||||
|
||||
#ifdef RAPTOR_PERF_METRICS
|
||||
# define START_TIMER() \
|
||||
if(mParser) mParser->mParseTime.Start(PR_FALSE);
|
||||
if(mParser) mParser->mParseTime.Start(PR_FALSE); \
|
||||
if(mParser) mParser->mDTDTime.Start(PR_FALSE);
|
||||
|
||||
# define STOP_TIMER() \
|
||||
if(mParser) mParser->mParseTime.Stop();
|
||||
if(mParser) mParser->mParseTime.Stop(); \
|
||||
if(mParser) mParser->mDTDTime.Stop();
|
||||
|
||||
#else
|
||||
# define STOP_TIMER()
|
||||
@@ -95,6 +96,7 @@ static eHTMLTags gWhitespaceTags[]={
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/***************************************************************
|
||||
This the ITagHandler deque deallocator, needed by the
|
||||
CTagHandlerRegister
|
||||
|
||||
Reference in New Issue
Block a user