Skip to content

Commit

Permalink
update flamegraph usage
Browse files Browse the repository at this point in the history
  • Loading branch information
saleel committed Feb 27, 2025
1 parent 77af5cc commit 384b5bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion noir-projects/noir-contracts/scripts/flamegraph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ else
fi

# At last, generate the flamegraph
$PROFILER gates --artifact-path "$FUNCTION_ARTIFACT" --backend-path "$BACKEND_PATH" --backend-gates-command "gates" --output "$OUTPUT_DIR" --scheme client_ivc
$PROFILER gates --artifact-path "$FUNCTION_ARTIFACT" --backend-path "$BACKEND_PATH" --backend-gates-command "gates" --output "$OUTPUT_DIR" --scheme client_ivc --include_gates_per_opcode

echo "Flamegraph generated for contract: $CONTRACT"
# save as $ARTIFACT_NAME-${FUNCTION}-flamegraph.svg
Expand Down
2 changes: 1 addition & 1 deletion noir-projects/noir-protocol-circuits/crates/blob/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The version of bb compatible with nargo 0.33.0 is `bbup --version 0.48.0`

<!-- `~/packages/noir/noir-repo/target/release/noir-profiler gates-flamegraph --artifact-path ./target/blob.json --backend-path ~/.bb/bb --output ./flamegraph -- -h && python3 -m http.server --directory "./flamegraph" 3000` -->

`~/packages/noir/noir-repo/target/release/noir-profiler gates --artifact-path ./target/blob.json --backend-path ~/.bb/bb --output ./flamegraph --backend-gates-command "gates" --scheme client_ivc -- -h && python3 -m http.server --directory "./flamegraph" 3000`
`~/packages/noir/noir-repo/target/release/noir-profiler gates --artifact-path ./target/blob.json --backend-path ~/.bb/bb --output ./flamegraph --backend-gates-command "gates" --scheme client_ivc --include_gates_per_opcode -- -h && python3 -m http.server --directory "./flamegraph" 3000`

## To serve an existing flamegraph:

Expand Down
2 changes: 1 addition & 1 deletion noir-projects/noir-protocol-circuits/scripts/flamegraph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ for CIRCUIT_NAME in "${CIRCUIT_NAMES[@]}"; do

# Generate the flamegraph.
if [ "$IS_MEGA_HONK_CIRCUIT" = "true" ]; then
$PROFILER gates --artifact-path "${ARTIFACT}" --backend-path "$SCRIPT_DIR/../../../barretenberg/cpp/build/bin/bb" --output "$DEST" --output-filename "$CIRCUIT_NAME" --backend-gates-command "gates" --scheme client_ivc -- -h 0
$PROFILER gates --artifact-path "${ARTIFACT}" --backend-path "$SCRIPT_DIR/../../../barretenberg/cpp/build/bin/bb" --output "$DEST" --output-filename "$CIRCUIT_NAME" --backend-gates-command "gates" --scheme client_ivc --include_gates_per_opcode -- -h 0
elif [ "$IS_ROLLUP_HONK_CIRCUIT" = "true" ]; then
$PROFILER gates --artifact-path "${ARTIFACT}" --backend-path "$SCRIPT_DIR/../../../barretenberg/cpp/build/bin/bb" --output "$DEST" --output-filename "$CIRCUIT_NAME" -- --honk_recursion 2
else
Expand Down

0 comments on commit 384b5bb

Please sign in to comment.