Add optional profiling support
This facilitates the use of programs like uftrace. It's disabled by default due to associated overhead. Change-Id: Ia5a48a38962fc99446887a34008c40efd8344d9b
This commit is contained in:
parent
ad1e3cdd6c
commit
0bd729f3ad
|
@ -113,6 +113,15 @@ if test "$enable_coverage" = "yes"; then
|
|||
AC_SUBST([COVERAGE_LDFLAGS])
|
||||
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
|
||||
|
||||
AC_ARG_ENABLE([vty_tests],
|
||||
AC_HELP_STRING([--enable-vty-tests],
|
||||
[Include the VTY/CTRL tests in make check (deprecated)
|
||||
|
|
Loading…
Reference in New Issue