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: runtime instruction/syscall report #839

Merged
merged 3 commits into from
May 30, 2024

Conversation

tqn
Copy link
Contributor

@tqn tqn commented May 30, 2024

Counts instructions and syscalls by their opcode/syscall code when should_report is set (currently always).

}

#[derive(Default, Debug, Clone, PartialEq, Eq)]
pub struct InstructionReport {
Copy link
Contributor

Choose a reason for hiding this comment

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

I thin that we should implement a string formatting method on this, so we can print it out (and have the opcode pretty printed out) and also a pretty version of the syscall code

@mattstam
Copy link
Contributor

looks good, but please merge into succinctlabs:dev branch instead of main

@tqn tqn changed the base branch from main to dev May 30, 2024 19:19
@mattstam
Copy link
Contributor

merging although FYI u64 is more appropriate for cycle counts as we already have some programs close to u32 cap, will fix in a follow up PR

@mattstam mattstam merged commit 1d8aa1b into succinctlabs:dev May 30, 2024
8 checks passed
mattstam pushed a commit that referenced this pull request May 30, 2024
Co-authored-by: Ratan Kaliani <ratankaliani@berkeley.edu>
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.

4 participants