Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add opcodes flamegraph and refactor gates flamegraph (#7282)
Adds another command to the noir profiler binary, opcodes-flamegraph, with the following usage: ``` noir-profiler opcodes-flamegraph -a PATH_TO_THE_ARTIFACT -o OUTPUT_PATH ``` for example: ``` ~/aztec-packages/noir/noir-repo/target/release/noir-profiler opcodes-flamegraph -a ~/aztec-packages/noir-projects/noir-protocol-circuits/target/private_kernel_inner.json -o . ``` Results in a flamegraph that counts the opcodes (not the gates) for all the call stacks, like the following: ![inner_opcodes](https://github.com/AztecProtocol/aztec-packages/assets/5372114/d3de9c63-79c1-43de-afd6-a9cf6fee42bd) This PR also refactors the gates-flamegraph and adds as the last call stack item the opcode type generated, to have more complete profiling information: ![image](https://github.com/AztecProtocol/aztec-packages/assets/5372114/df8d1615-5d74-445a-866a-05f9c9d18754)
- Loading branch information