-
Notifications
You must be signed in to change notification settings - Fork 1k
Add instruction limit #1828
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 instruction limit #1828
Conversation
|
I wonder if the desired behavior can be achieved through using the achieve the same effect? |
|
Doesn't seem to - it does stop the simulation but it just drops you into the REPL rather than exiting. In any case it's a far less convenient and discoverable interface. |
|
Any chance of a review for this? |
aswaterman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes to the control flow make me a little nervous, but they are probably harmless. @jerryz123?
Timmmm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review!
a965833 to
784679a
Compare
|
Looks like you need to update the ci-tests to account for the API change. |
Adds an optional --instructions=N CLI argument which will stop the simulation after N instructions. This is useful for benchmarking and profiling and sometimes debugging.
784679a to
fdbcde2
Compare
|
Thanks! |
Adds an optional --instructions=N CLI argument which will stop the simulation after N instructions.
This is useful for benchmarking and profiling and sometimes debugging.