8000 vm: add vm.opdebug flag by yoomee1313 · Pull Request #2012 · klaytn/klaytn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

vm: add vm.opdebug flag #2012

Merged
merged 2 commits into from
Nov 3, 2023
Merged

vm: add vm.opdebug flag #2012

merged 2 commits into from
Nov 3, 2023

Conversation

yoomee1313
Copy link
Contributor

Proposed changes

  • This PR adds vm.opdebug flag which enables collecting and printing the execution time of the opcodes when node stops. This flag is for debugging purpose when measuring execution time and deciding computation cost of the opcodes.
  • Originally, the collecting of the execution time is done by uncommenting the debug code in blockchain/vm/interpreter.go. This PR removes the uncommented debug code and add a similar debug code which is run if the vm.opdebug flag is set.

Types of changes

Please put an x in the boxes related to your change.

  • Bugfix
  • New feature or enhancement
  • Others

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING GUIDELINES doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes ($ make test)
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Related issues

  • Please leave the issue numbers or links related to this PR here.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@yoomee1313 yoomee1313 self-assigned this Oct 27, 2023
@yoomee1313 yoomee1313 marked this pull request as ready for review October 27, 2023 09:32
blukat29
blukat29 previously approved these changes Oct 27, 2023
@yoomee1313
Copy link
Contributor Author

@sjnam could you review this PR?

@yoomee1313 yoomee1313 merged commit 0494fda into klaytn:dev Nov 3, 2023
@yoomee1313 yoomee1313 deleted the opdebug-flag branch November 3, 2023 01:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0