Added a simple benchmark of wxLogDebug() and wxLogTrace().

Measure time taken by these calls when the debug/trace messages are not
enabled.

See #11829.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-01-22 00:58:09 +00:00
parent 7e57c9042a
commit f7f7b59ab2
11 changed files with 193 additions and 48 deletions

View File

@@ -41,6 +41,7 @@ BENCH_OBJECTS = \
$(OBJS)\bench_htmlpars.obj \
$(OBJS)\bench_htmltag.obj \
$(OBJS)\bench_ipcclient.obj \
$(OBJS)\bench_log.obj \
$(OBJS)\bench_mbconv.obj \
$(OBJS)\bench_strings.obj \
$(OBJS)\bench_tls.obj \
@@ -225,6 +226,9 @@ $(OBJS)\bench_htmltag.obj: .\htmlparser\htmltag.cpp
$(OBJS)\bench_ipcclient.obj: .\ipcclient.cpp
$(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\ipcclient.cpp
$(OBJS)\bench_log.obj: .\log.cpp
$(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\log.cpp
$(OBJS)\bench_mbconv.obj: .\mbconv.cpp
$(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\mbconv.cpp