aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
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 /.github/workflows
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 '.github/workflows')
-rw-r--r--.github/workflows/build.yml14
1 files changed, 11 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index a1d8aa1c0..17e43a6e2 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -116,19 +116,27 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install autoconf automake libtool pkg-config gettext flex bison libpcap-dev
- sudo apt-get install golang-1.16-go libgoogle-perftools-dev
+ sudo apt-get install golang-1.16-go libgoogle-perftools-dev graphviz
env GO111MODULE=on go install github.com/google/pprof@latest
sudo ln -s ${HOME}/go/bin/pprof /usr/bin/pprof
pprof -h
- name: Configure nDPI library
run: |
- ./autogen.sh --enable-gprof --enable-option-checking=fatal ${{ matrix.gcrypt }} ${{ matrix.msan }} ${{ matrix.pcre }} ${{ matrix.maxminddb }}
+ ./autogen.sh --enable-gprof --enable-option-checking=fatal --with-pcre --with-maxminddb --enable-tls-sigs
- name: Build nDPI library
run: |
make
- name: Performance Profiling
run: |
- env LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libprofiler.so ./tests/do.sh
+ ./tests/do.sh
+ mkdir ndpi-performance-upload
+ mv -v tests/result/cpu_profile.png ndpi-performance-upload/cpu_profile.png
+ mv -v tests/result/heap_profile.png ndpi-performance-upload/heap_profile.png
+ - uses: actions/upload-artifact@v2
+ with:
+ name: ndpi-performance
+ path: ndpi-performance-upload
+ retention-days: 7
test-scripts:
name: Test Utils (ubuntu-latest)