aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2022-07-02 18:14:11 +0200
committerToni Uhlig <matzeton@googlemail.com>2022-07-03 17:31:54 +0200
commitc1d8d45ff9ed031596b8de8ff49412633d129d12 (patch)
treec40f2969e8a89e5ef2269cfb9c53b76bf0853178 /tests
parent6b6b193c97a163c7d6b271f9258b7c967cc2412f (diff)
Generate profiling results as PNG.add/gprof-test-ci-integration
* 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>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/do.sh.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/do.sh.in b/tests/do.sh.in
index 3d9bfeaca..6172439ba 100755
--- a/tests/do.sh.in
+++ b/tests/do.sh.in
@@ -108,8 +108,10 @@ check_results() {
done
if [ ${GPROF_ENABLED} -eq 1 ]; then
- ${GPROF} -top -nodecount 100 -nodefraction 0 -show '^(ndpi)' ../example/ndpiReader${EXE_SUFFIX} ./result/*.cprof || RC=$(( RC + 1 ))
- ${GPROF} -top -nodecount 100 -nodefraction 0 -show '^(ndpi)' ../example/ndpiReader${EXE_SUFFIX} ./result/*.heap || RC=$(( RC + 1 ))
+ ${GPROF} -top -nodecount 100 -nodefraction 0 -show '^(ndpi|.*_ndpi)' ../example/ndpiReader${EXE_SUFFIX} ./result/*.cprof || exit 1
+ ${GPROF} -png -output ./result/cpu_profile.png -nodecount 100 -nodefraction 0 -show '^(ndpi|.*_ndpi)' ../example/ndpiReader${EXE_SUFFIX} ./result/*.cprof || exit 1
+ ${GPROF} -top -nodecount 100 -nodefraction 0 -show '^(ndpi|.*_ndpi)' ../example/ndpiReader${EXE_SUFFIX} ./result/*.heap || exit 1
+ ${GPROF} -png -output ./result/heap_profile.png -nodecount 100 -nodefraction 0 -show '^(ndpi|.*_ndpi)' ../example/ndpiReader${EXE_SUFFIX} ./result/*.heap || exit 1
fi
}