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(cli): tracer #1188

Merged
merged 5 commits into from
Aug 4, 2024
Merged

feat(cli): tracer #1188

merged 5 commits into from
Aug 4, 2024

Conversation

puma314
Copy link
Contributor

@puma314 puma314 commented Jul 26, 2024

Added a RISC-V tracer command to the cargo prove CLI that will allow users to trace which functions are expensive.

Usage:

  • Use the TRACE_FILE environment variable set to a file name, when executing the ELF (with inputs) to save a trace of the pc to the specified file
  • Use cargo prove trace -- --elf path_to_elf --trace trace_file to output a trace of function calls

@puma314 puma314 changed the title WIP: tracer feat(cli): tracer Aug 4, 2024
@puma314 puma314 marked this pull request as ready for review August 4, 2024 01:27
)]
pub struct TraceCmd {
#[arg(short, long, default_value_t = 30)]
/// Include the "top" number of functions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: a bit unusual to have the comment under the macro

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also usually attribute comments have periods at end throughput repo

}
}

fn _build_radare2_lookups(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can delete?

@jtguibas jtguibas merged commit 05acbb6 into dev Aug 4, 2024
5 checks passed
@jtguibas jtguibas deleted the uma/tracer branch August 4, 2024 23:37
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