Commit d36b4ad2 authored by Mikaël Salson's avatar Mikaël Salson

.gitlab-ci: Add job to provide CPU/Memory profiling

Fix #918
parent dc338034
Pipeline #146591 passed with stages
in 72 minutes and 55 seconds
......@@ -56,6 +56,7 @@ test_germlines:
include:
- local: '/doc/.gitlab-ci.yml'
- local: 'algo/.gitlab-ci-compilers.yml' # Stage multiple_tests
- local: 'algo/.gitlab-ci.yml' # Vidjil-algo pipelines
# Algorithm
......
profiling_algo:
stage: benchmark
image: gcc:9
before_script:
- apt-get update
- apt-get install -y wget python3 tar libgoogle-perftools4 libgoogle-perftools-dev google-perftools graphviz
script:
- make demo data germline
- make DEBUG="-g"
- LIB_PROFILE=$(find /usr/lib -name libprofiler.so)
- CPUPROFILE=vidjil.cpu LD_PRELOAD="$LIB_PROFILE" ./vidjil-algo -g germline -r 1 demo/LIL-L4.fastq.gz
- LIB_MALLOC=$(find /usr/lib -name libtcmalloc.so)
- HEAPPROFILE=vidjil.mem LD_PRELOAD="$LIB_MALLOC" ./vidjil-algo -g germline -r 1 demo/LIL-L4.fastq.gz
- google-pprof --lines --text vidjil-algo vidjil.cpu
- echo "###########################################"
- google-pprof --lines --text vidjil-algo vidjil.mem.*
- google-pprof --lines --pdf vidjil-algo vidjil.cpu > vidjil-cpu.pdf
- google-pprof --lines --pdf vidjil-algo vidjil.mem.* > vidjil-mem.pdf
artifacts:
paths:
- vidjil-*.pdf
- vidjil.cpu
- vidjil.mem.*
when: manual
tags:
- cidocker
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment