From 193322ac0519651d846eed2377f13d5b214fb108 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 8 Mar 2010 14:58:00 +0200 Subject: profiling: add callgraph report This patch also tracks who called a template and how often. Based on that the output of xsltproc --profile now also contains a gprof alike callgraph. If available posix monotonic clocks are the preferred way to get timestamps. --- configure.in | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 7fef7a2f..d4418d33 100644 --- a/configure.in +++ b/configure.in @@ -239,6 +239,8 @@ AC_CHECK_FUNC(floor, , AC_CHECK_LIB(m, floor, AC_CHECK_FUNC(fabs, , AC_CHECK_LIB(m, fabs, [M_LIBS="-lm"; AC_DEFINE(HAVE_FABS)])) + + AC_CHECK_FUNCS(gettimeofday) AC_CHECK_FUNCS(mktime localtime localtime_r asctime time gmtime_r ftime) @@ -246,6 +248,14 @@ dnl Checking the standard string functions availability AC_CHECK_FUNCS(printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf,, NEED_TRIO=1) +dnl Checking for POSIX timers +AC_CHECK_FUNCS(clock_gettime, [], [ + AC_CHECK_LIB(rt, clock_gettime, [ + AC_DEFINE(HAVE_CLOCK_GETTIME, 1) + EXTRA_LIBS="$EXTRA_LIBS -lrt" + ]) +]) + dnl dnl Check for trio string functions dnl @@ -458,7 +468,7 @@ dnl the ability to specify the location of the libxml dnl library during linking and compilation. dnl dnl original work - Mathieu Lacage 30/03/2000 -dnl some tweaking - David Härdeman 30/10/2001 +dnl some tweaking - David Härdeman 30/10/2001 dnl LIBXML_CONFIG_PREFIX="" -- cgit v1.2.3