Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use perf record -g on CI and save perf data for later analysis #1205

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions .github/workflows/coq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
fail-fast: false
matrix:
include:
- env: { COQ_VERSION: "master" , COQ_PACKAGE: "coq libcoq-ocaml-dev", SKIP_BEDROCK2: "" , SKIP_VALIDATE: "", COQCHKEXTRAFLAGS: "-bytecode-compiler yes", PPA: "ppa:jgross-h/coq-master-daily", EXTRA_GH_REPORTIFY: "--warnings" }
- env: { COQ_VERSION: "master" , COQ_PACKAGE: "coq libcoq-ocaml-dev", SKIP_BEDROCK2: "" , SKIP_VALIDATE: "", COQCHKEXTRAFLAGS: "-bytecode-compiler yes", PPA: "ppa:jgross-h/coq-master-daily", EXTRA_GH_REPORTIFY: "--warnings", PERF_TESTS: "1" }
os: 'ubuntu-latest'
- env: { COQ_VERSION: "Ubuntu LTS", COQ_PACKAGE: "coq libcoq-ocaml-dev", SKIP_BEDROCK2: "1", SKIP_VALIDATE: "", COQCHKEXTRAFLAGS: "" , PPA: "" }
- env: { COQ_VERSION: "Ubuntu LTS", COQ_PACKAGE: "coq libcoq-ocaml-dev", SKIP_BEDROCK2: "1", SKIP_VALIDATE: "", COQCHKEXTRAFLAGS: "" , PPA: "", PERF_TESTS: "1" }
os: 'ubuntu-20.04'

runs-on: ${{ matrix.os }}
Expand All @@ -36,6 +36,10 @@ jobs:
with:
ghc-version: 'latest'
cabal-version: 'latest'
- name: support perf
run: |
sudo sh -c 'echo 0 >/proc/sys/kernel/perf_event_paranoid'
sudo sh -c 'echo 0 >/proc/sys/kernel/kptr_restrict'
- name: echo build params
run: |
echo "::group::lscpu"
Expand All @@ -47,6 +51,12 @@ jobs:
echo "::group::lsb_release -a"
lsb_release -a
echo "::endgroup::"
echo "::group::ls -l /proc/kallsyms"
ls -l /proc/kallsyms
echo "::endgroup::"
echo "::group::cat /proc/kallsyms"
cat /proc/kallsyms
echo "::endgroup::"
echo "::group::ghc --version"
ghc --version
echo "::endgroup::"
Expand Down Expand Up @@ -92,6 +102,16 @@ jobs:
name: ExtractionHaskell-${{ matrix.env.COQ_VERSION }}
path: src/ExtractionHaskell
if: always ()
- name: collect perf info
run: |
find . -name "*.perf.data" | xargs tar -czvf perf.data.tgz
if: always ()
- name: upload perf files
uses: actions/upload-artifact@v3
with:
name: perf-data-${{ matrix.env.COQ_VERSION }}
path: perf.data.tgz
if: always ()
- name: display timing info
run: cat time-of-build-pretty.log
- name: display per-line timing info
Expand Down