One of the next steps is adding a subcommand to analyze-zkasm that allows to go wat file -> instrumented zkasm -> executed instruction trace in one step. Adding tests for execution traces will be much easier once this command exists. Therefore, if possible, I would like to postpone adding tests until then.
Adds the
InstructionTracer.js
helper forzkevm-proverjs
and integrates it with tooling by:profile-instructions
command torun-tests-zkasm.js
: It executes instrumented zkASM.InstructionTracer
helper whenZkasmSettings::emit_profiling_info
is enabled.Can be reviewed commit by commit.
Usage
Generate instrumented zkASM with
analyze-zkasm
, for example:Execute the instrumented zkASM and write the trace of executed instructions to a file:
Testing
One of the next steps is adding a subcommand to
analyze-zkasm
that allows to gowat file -> instrumented zkasm -> executed instruction trace
in one step. Adding tests for execution traces will be much easier once this command exists. Therefore, if possible, I would like to postpone adding tests until then.