Skip to content

Commit

Permalink
feat: flamegraphs for e2e (#7836)
Browse files Browse the repository at this point in the history
Add commands for generating a flamegraph for e2e test.
  • Loading branch information
LHerskind authored Aug 8, 2024
1 parent f5e874e commit e5c6ced
Show file tree
Hide file tree
Showing 3 changed files with 1,364 additions and 36 deletions.
1 change: 1 addition & 0 deletions yarn-project/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ circuits.js/fixtures/*.json
circuits.js/src/structs/kernel/private_kernel_reset_circuit_private_inputs_variants.ts
docs/dist
end-to-end/addresses.json
end-to-end/flame_graph
end-to-end/log
end-to-end/data
end-to-end/src/web/main.js
Expand Down
3 changes: 3 additions & 0 deletions yarn-project/end-to-end/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"formatting": "run -T prettier --check ./src \"!src/web/main.js\" && run -T eslint ./src",
"formatting:fix": "run -T eslint --fix ./src && run -T prettier -w ./src",
"test": "LOG_LEVEL=${LOG_LEVEL:-verbose} DEBUG_COLORS=1 NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --testTimeout=300000 --forceExit",
"test:profile": "LOG_LEVEL=${LOG_LEVEL:-verbose} DEBUG_COLORS=1 NODE_NO_WARNINGS=1 0x --output-dir \"flame_graph/{pid}.0x\" -- node --experimental-vm-modules ../node_modules/jest/bin/jest.js --runInBand --testTimeout=300000 --forceExit",
"serve:flames": "python3 -m http.server --directory \"flame_graph\" 8000",
"test:debug": "LOG_LEVEL=${LOG_LEVEL:-verbose} DEBUG_COLORS=1 NODE_NO_WARNINGS=1 node --inspect --experimental-vm-modules ../node_modules/.bin/jest --testTimeout=300000 --forceExit",
"test:integration": "concurrently -k -s first -c reset,dim -n test,anvil \"yarn test:integration:run\" \"anvil\"",
"test:integration:run": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --no-cache --runInBand --config jest.integration.config.json"
Expand Down Expand Up @@ -92,6 +94,7 @@
"winston": "^3.10.0"
},
"devDependencies": {
"0x": "^5.7.0",
"@jest/globals": "^29.5.0",
"@types/jest": "^29.5.0",
"@types/lodash.chunk": "^4.2.9",
Expand Down
Loading

0 comments on commit e5c6ced

Please sign in to comment.