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:
rickg%netscape.com
1999-10-17 02:45:26 +00:00
parent 9868a31060
commit 7f8bd4a5fc
2 changed files with 10 additions and 6 deletions

View File

@@ -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