Skip to content

Commit

Permalink
feat: Profile app circuits with megahonk (#7737)
Browse files Browse the repository at this point in the history
After this PR #7722
we can profile with megahonk, to get more accurate gate counts.
  • Loading branch information
sirasistant authored Aug 2, 2024
1 parent 51d73ce commit ef4217f
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -52,7 +52,7 @@ FUNCTION_ARTIFACT="${ARTIFACT_NAME}-${FUNCTION}.json"
mkdir -p "$SCRIPT_DIR/../dest"

# At last, generate the flamegraph
$PROFILER gates-flamegraph --artifact-path "$SCRIPT_DIR/../target/$FUNCTION_ARTIFACT" --backend-path "$SCRIPT_DIR/../../../barretenberg/cpp/build/bin/bb" --output "$SCRIPT_DIR/../dest"
$PROFILER gates-flamegraph --artifact-path "$SCRIPT_DIR/../target/$FUNCTION_ARTIFACT" --backend-path "$SCRIPT_DIR/../../../barretenberg/cpp/build/bin/bb" --backend-gates-command "gates_mega_honk" --output "$SCRIPT_DIR/../dest"

# serve the file over http
echo "Serving flamegraph at http://0.0.0.0:8000/main_gates.svg"
Expand Down

0 comments on commit ef4217f

Please sign in to comment.