diff options
author | lns <matzeton@googlemail.com> | 2022-06-17 15:47:19 +0200 |
---|---|---|
committer | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-07-03 17:38:43 +0200 |
commit | f2d1edbedf4b36eafb6869ffd5684d2558c1d355 (patch) | |
tree | a1db67572df92d9cca0987778ee3a4aebf5d72aa /.github/workflows | |
parent | 1a01e8dc687df706ef775122a5bc31baa07f12d4 (diff) |
gprof test/CI integration
Signed-off-by: lns <matzeton@googlemail.com>
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a720f440c..a1d8aa1c0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -91,7 +91,7 @@ jobs: sudo apt-get install autoconf automake libtool pkg-config gettext flex bison doxygen - name: Configure nDPI library run: | - ./autogen.sh --with-only-libndpi + ./autogen.sh --with-only-libndpi --enable-option-checking=fatal - name: Generate Documentation run: | pip install --upgrade pip @@ -105,6 +105,31 @@ jobs: path: doc/_build/ndpi-documentation-upload retention-days: 7 + performance: + name: Performance (ubuntu-latest) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Install Ubuntu Prerequisites + 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 + 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 }} + - name: Build nDPI library + run: | + make + - name: Performance Profiling + run: | + env LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libprofiler.so ./tests/do.sh + test-scripts: name: Test Utils (ubuntu-latest) runs-on: ubuntu-latest |