Publishing tests.png and flamegraph.svg
gitea.matetelki.eu/performance_measuring/master There was a failure building this commit Details

master
denes 5 years ago
parent d86775473f
commit 4d432b42d4
Signed by: denes
GPG Key ID: A7D50EAD42F9FC9F

5
Jenkinsfile vendored

@ -17,7 +17,10 @@ pipeline {
stage('Running catch2 tests') {
steps {
sh './performance_measuring_test'
sh './performance_measuring_test > tests.txt'
sh 'convert -size 360x360 xc:white -font "FreeMon" -pointsize 12 -fill black -draw @tests.txt tests.png'
sh 'convert -background black -fill white -pointsize 16 -font Courier label:tests.txt tests.png'
archiveArtifacts artifacts: 'tests.png', fingerprint: true
}
}

@ -1,9 +1,9 @@
#/bin/bash
# Don't forget to :
# Don't forget to allow perf record run as user:
# sudo bash -c "echo 0 > /proc/sys/kernel/perf_event_paranoid"
perf record -F 20000 -g ./performance_measuring
perf script > out.perf
./FlameGraph/stackcollapse-perf.pl out.perf > out.folded
./FlameGraph/stackcollapse-perf.pl --all out.perf > out.folded
./FlameGraph/flamegraph.pl out.folded > flamegraph.svg

Loading…
Cancel
Save