mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add optional use of Google Profiler.
See https://code.google.com/p/gperftools
This commit is contained in:
parent
8a899fc47a
commit
8e25412d20
12
configure.ac
12
configure.ac
@ -741,6 +741,18 @@ AC_ARG_ENABLE( profile,
|
||||
CXXFLAGS="${CXXFLAGS} -pg"
|
||||
LDFLAGS="${LDFLAGS} -pg")
|
||||
|
||||
###---------------------------------------------------------------------------
|
||||
### Google Profiler Support: https://code.google.com/p/gperftools/
|
||||
###---------------------------------------------------------------------------
|
||||
enable_google_profile=no
|
||||
AC_ARG_ENABLE( google-profiler,
|
||||
[AS_HELP_STRING([--enable-google-profiler], [link in Google Performance Tools profiler; allows enabling profiling by setting $CPUPROFILE=/path/to/logfile.])],
|
||||
[AC_MSG_CHECKING([Google PerfTools Profiler])
|
||||
AC_CHECK_LIB([profiler], enable_google_profile=yes)],
|
||||
[AC_MSG_WARN([Google Profiling Enabled but the library wasn\'t found.])
|
||||
])
|
||||
AM_CONDITIONAL(WITH_GOOGLE_PROFILER, [test x$enable_google_profile = xyes])
|
||||
|
||||
### --------------------------------------------------------------------------
|
||||
### Register2
|
||||
AC_ARG_ENABLE( register2,
|
||||
|
@ -58,6 +58,10 @@ gnucash_LDADD = \
|
||||
${GLIB_LIBS} \
|
||||
${GTK_LIBS}
|
||||
|
||||
if WITH_GOOGLE_PROFILER
|
||||
gnucash_LDADD += -lprofiler
|
||||
endif
|
||||
|
||||
GNUCASH_BIN_INSTALL_NAME=`echo ${BIN_NAME} | sed -e '$(transform)'`
|
||||
|
||||
gnucash-valgrind: gnucash-valgrind.in ${top_builddir}/config.status Makefile
|
||||
|
Loading…
Reference in New Issue
Block a user