Generate profiling results as PNG.

* use -ltcmalloc_and_profiler and try to get rid of LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libprofiler.so

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2022-07-03 17:38:43 +02:00
committed by Ivan Nardi
parent f2d1edbedf
commit 69ccb39741
3 changed files with 16 additions and 6 deletions
+1 -1
View File
@@ -286,7 +286,7 @@ AS_IF([test "x$enable_gprof" = "xyes"], [
AC_MSG_ERROR([libtcmalloc not available. Required for profiling support.])
])
GPROF_ENABLED=1
GPROF_LIBS="${pkg_cv_PROFILER_LIBS} ${pkg_cv_TCMALLOC_LIBS}"
GPROF_LIBS="-ltcmalloc_and_profiler"
GPROF_CFLAGS="${pkg_cv_PROFILER_CFLAGS} ${pkg_cv_TCMALLOC_CFLAGS}"
])