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

Add tracing #1766

Open
pefontana opened this issue May 16, 2024 · 0 comments
Open

Add tracing #1766

pefontana opened this issue May 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@pefontana
Copy link
Member

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)
@pefontana pefontana added the enhancement New feature or request label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant