cairo-vm
cairo-vm copied to clipboard
Add tracing
Add tracing to the cairo-vm in the Cairo 0 runs and cairo-1-run crate https://crates.io/crates/tracing
The idea is to add some tracing, make debugging easier, and get extra info on the program execution. Similar to what we do in cairo_native https://github.com/lambdaclass/cairo_native/blob/60796b938eef20ab2fc55466100cbd4ed1158a4b/src/compiler.rs#L120
Some info the tracing can show:
- Builtins initialized
- Segment memory of each builtin and the data inside it
- Steps executed/ ExecutionResources
- Relocated Trace size
- Relocated Memory size
- Trace/Memory output (optional)