Add optional profiling support
This facilitates the use of programs like uftrace. It's disabled by default due to associated overhead. Change-Id: I5c16988cefa46e0b958030c0f3bff9efc5b4979d
This commit is contained in:
parent
20c7c46bce
commit
effdec6e13
|
@ -44,6 +44,15 @@ then
|
|||
CPPFLAGS="$CPPFLAGS -fsanitize=address -fsanitize=undefined"
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(profile,
|
||||
[AS_HELP_STRING([--enable-profile], [Compile with profiling support enabled], )],
|
||||
[profile=$enableval], [profile="no"])
|
||||
if test x"$profile" = x"yes"
|
||||
then
|
||||
CFLAGS="$CFLAGS -pg"
|
||||
CPPFLAGS="$CPPFLAGS -pg"
|
||||
fi
|
||||
|
||||
dnl checks for libraries
|
||||
PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.10.1)
|
||||
PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty)
|
||||
|
|
Loading…
Reference in New Issue