Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bench): add subcommand to go from WAT to instruction trace #250

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

mooori
Copy link

@mooori mooori commented Mar 15, 2024

The subcommand is called profile-inst and it can be run, for example, with:

cargo run -p analyze-zkasm -- profile-inst \
	cranelift/zkasm_data/benchmarks/sha256/from_rust.wat \
	trace.txt

To print the command's docs:

cargo run -p analyze-zkasm -- profile-inst --help

Generates instrumented zkasm and runs it produce the trace of executed instructions

Usage: analyze-zkasm profile-inst <WAT_PATH> <OUT_PATH>

Arguments:
  <WAT_PATH>  Path to the input WAT file
  <OUT_PATH>  Path to the file where the trace is written

Options:
  -h, --help     Print help
  -V, --version  Print version

@mooori mooori marked this pull request as ready for review March 15, 2024 14:10
@mooori mooori added this pull request to the merge queue Mar 18, 2024
Merged via the queue into near:main with commit cfd17ba Mar 18, 2024
22 checks passed
@mooori mooori deleted the profile-subcmd branch March 18, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants