- Stop the stopwatch *before* the reference to the parser is released!

- Include util.lib into the list of statically linked libraries
This commit is contained in:
nisheeth%netscape.com 1999-09-21 06:23:10 +00:00
parent 80857fb244
commit 03b5fa26ea
4 changed files with 20 additions and 4 deletions

View File

@ -21,6 +21,11 @@ include <$(DEPTH)\config\config.mak>
LIBRARY_NAME=raptorhtmlpars
DEFINES=-D_IMPL_NS_HTMLPARS -DWIN32_LEAN_AND_MEAN -DXML_DTD
!if defined(MOZ_PERF)
DEFINES = $(DEFINES) -DRAPTOR_PERF_METRICS
!endif
MODULE=raptor
REQUIRES=xpcom raptor netlib
@ -148,6 +153,9 @@ LLIBS= \
$(DIST)\lib\expat.lib \
!ifdef NECKO
$(DIST)\lib\neckoutil_s.lib \
!endif
!ifdef MOZ_PERF
$(DIST)\lib\util.lib \
!endif
$(LIBNSPR)

View File

@ -636,10 +636,10 @@ nsresult nsParser::EnableParser(PRBool aState){
result=mInternalState;
}
NS_STOP_STOPWATCH(mTotalTime)
// Release reference if we added one at the top of this routine
NS_IF_RELEASE(me);
NS_STOP_STOPWATCH(mTotalTime)
return result;
}

View File

@ -21,6 +21,11 @@ include <$(DEPTH)\config\config.mak>
LIBRARY_NAME=raptorhtmlpars
DEFINES=-D_IMPL_NS_HTMLPARS -DWIN32_LEAN_AND_MEAN -DXML_DTD
!if defined(MOZ_PERF)
DEFINES = $(DEFINES) -DRAPTOR_PERF_METRICS
!endif
MODULE=raptor
REQUIRES=xpcom raptor netlib
@ -148,6 +153,9 @@ LLIBS= \
$(DIST)\lib\expat.lib \
!ifdef NECKO
$(DIST)\lib\neckoutil_s.lib \
!endif
!ifdef MOZ_PERF
$(DIST)\lib\util.lib \
!endif
$(LIBNSPR)

View File

@ -636,10 +636,10 @@ nsresult nsParser::EnableParser(PRBool aState){
result=mInternalState;
}
NS_STOP_STOPWATCH(mTotalTime)
// Release reference if we added one at the top of this routine
NS_IF_RELEASE(me);
NS_STOP_STOPWATCH(mTotalTime)
return result;
}