Skip to content

Commit

Permalink
perf recording
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Oct 18, 2024
1 parent fc16ce3 commit b65be78
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Build o1js
on:
push:
branches:
- perf-recording
- main
- develop
pull_request:
Expand Down Expand Up @@ -138,6 +139,8 @@ jobs:

- name: Prepare for tests
run: touch profiling.md
- name: create dir
run: mkdir tests/report/profile-data

- name: Run unit tests
env:
Expand Down Expand Up @@ -166,7 +169,7 @@ jobs:
for ((i=start_index; i<end_index && i<${#test_files[@]}; i++)); do
echo "Running test: ${test_files[$i]}"
node --enable-source-maps "${test_files[$i]}" | tee -a profiling.md
node --cpu-prof --cpu-prof-name "${test_files[$i]}-test" --cpu-prof-dir tests/report/profile-data --enable-source-maps "${test_files[$i]}" | tee -a profiling.md
done
continue-on-error: false

Expand Down Expand Up @@ -229,7 +232,13 @@ jobs:
npm run e2e:prepare-server
- name: Execute E2E tests
run: npm run test:e2e
run: node --prof $(which npm) run test:e2e
- name: Execute E2E tests
run: node --heap-prof $(which npm) run test:e2e
- name: Execute E2E tests
run: node --cpu-prof --cpu-prof-name "e2e-tests" --cpu-prof-dir tests/report/profile-data $(which npm) run test:e2e
- name: archive results
run: tar -czf profile-data.tgz tests/report/profile-data

- name: Upload E2E test artifacts
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion run
Original file line number Diff line number Diff line change
@@ -1 +1 @@
node --enable-source-maps --stack-trace-limit=1000 src/build/run.js $@
node --cpu-prof --cpu-prof-dir tests/report/profile-data --enable-source-maps --stack-trace-limit=1000 src/build/run.js $@
2 changes: 1 addition & 1 deletion src/mina
Submodule mina updated 492 files

0 comments on commit b65be78

Please sign in to comment.