Skip to content

Commit b65be78

Browse files
author
mike dupont
committed
perf recording
1 parent fc16ce3 commit b65be78

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

.github/workflows/build-action.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Build o1js
22
on:
33
push:
44
branches:
5+
- perf-recording
56
- main
67
- develop
78
pull_request:
@@ -138,6 +139,8 @@ jobs:
138139

139140
- name: Prepare for tests
140141
run: touch profiling.md
142+
- name: create dir
143+
run: mkdir tests/report/profile-data
141144

142145
- name: Run unit tests
143146
env:
@@ -166,7 +169,7 @@ jobs:
166169
167170
for ((i=start_index; i<end_index && i<${#test_files[@]}; i++)); do
168171
echo "Running test: ${test_files[$i]}"
169-
node --enable-source-maps "${test_files[$i]}" | tee -a profiling.md
172+
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
170173
done
171174
continue-on-error: false
172175

@@ -229,7 +232,13 @@ jobs:
229232
npm run e2e:prepare-server
230233
231234
- name: Execute E2E tests
232-
run: npm run test:e2e
235+
run: node --prof $(which npm) run test:e2e
236+
- name: Execute E2E tests
237+
run: node --heap-prof $(which npm) run test:e2e
238+
- name: Execute E2E tests
239+
run: node --cpu-prof --cpu-prof-name "e2e-tests" --cpu-prof-dir tests/report/profile-data $(which npm) run test:e2e
240+
- name: archive results
241+
run: tar -czf profile-data.tgz tests/report/profile-data
233242

234243
- name: Upload E2E test artifacts
235244
uses: actions/upload-artifact@v4

run

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
node --enable-source-maps --stack-trace-limit=1000 src/build/run.js $@
1+
node --cpu-prof --cpu-prof-dir tests/report/profile-data --enable-source-maps --stack-trace-limit=1000 src/build/run.js $@

src/mina

Submodule mina updated 492 files

0 commit comments

Comments
 (0)