[bind10-dev] gprof results

Jeremy C. Reed jreed at isc.org
Tue Jun 8 16:19:57 UTC 2010


I placed some gprof output for b10-auth at:

http://bind10.isc.org/~jreed/profiling/

http://bind10.isc.org/~jreed/profiling/gprof.out-100000-sqlite
is 100,000 queries from record from sqlite db.

http://bind10.isc.org/~jreed/profiling/gprof.out-1000000-version.bind
is 1,000,000 queries of builtin record.

I configured like:
LDFLAGS=-pg CPPFLAGS=-pg CXXFLAGS=-pg CFLAGS=-pg \
	./configure --prefix=/home/jreed/tmp/bind10-pg

I also patched configure.ac to not overwrite B10_CXXFLAGS.
-B10_CXXFLAGS=
+#B10_CXXFLAGS=
 
 if test "X$GCC" = "Xyes"; then
-B10_CXXFLAGS="-g -Wall -Wextra -Wwrite-strings -Woverloaded-virtual 
-Wno-sign-compare"
+B10_CXXFLAGS="${B10_CXXFLAGS} -g -Wall -Wextra -Wwrite-strings 
-Woverloaded-virtual -Wno-sign-compare"

and used:
B10_CXXFLAGS=-pg LDFLAGS=-pg CPPFLAGS=-pg CXXFLAGS=-pg CFLAGS=-pg \
  ./configure --prefix=/home/jreed/tmp/bind10-pg

But didn't notice difference than the gprof output was ordered 
different:
http://bind10.isc.org/~jreed/profiling/gprof.out-100000-version.bind-2

I didn't use any special command line switches for gprof.

To get the gmon.out file, you must exit b10-auth cleanly, so I use:
echo Auth shutdown | ~/tmp/bind10-pg/bin/bindctl
(bind10 restarts it but since not exited cleanly with Ctrl-C, it doesn't 
replace the gmon.out.)



More information about the bind10-dev mailing list