path: gitlab-shell_14.35.0+ds1-2/vendor/gitlab.com/gitlab-org/gitaly/v16/_support/benchmarking/roles/gitaly/files/profile-gitaly.sh fi if ! pidof gitaly > /dev/null; then echo "Gitaly is not running, aborting" >&2 exit 1 path: gitlab-shell_14.35.0+ds1-2/vendor/gitlab.com/gitlab-org/gitaly/v16/_support/benchmarking/roles/gitaly/files/profile-gitaly.sh # --call-graph=fp - Use framepointers for call stack, works well with Golang # and ~10x smaller output than DWARF. perf record --freq=99 --call-graph=fp --pid="$(pidof -s gitaly)" \ --no-inherit --output="${gitaly_perf_data}" -- sleep "${seconds}" & path: gitlab-shell_14.35.0+ds1-2/vendor/gitlab.com/gitlab-org/gitaly/v16/_support/benchmarking/roles/benchmark/tasks/bench.yml - name: Capture Gitaly logs shell: journalctl --output=cat _PID=$(pidof -s gitaly) > "{{ output_dir }}/gitaly.log"