Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Better EVM informant & Slow transactions warning #2436

Merged
merged 2 commits into from
Oct 3, 2016
Merged

Conversation

tomusdrw
Copy link
Collaborator

@tomusdrw tomusdrw commented Oct 3, 2016

  1. Execution time
  2. Displaying opcode parameters (on stack)
  3. Opcode statistics

Second:
Additional compilation feature to print warning on slow transactions in blocks.

@tomusdrw tomusdrw added the A0-pleasereview 🤓 Pull request needs code review. label Oct 3, 2016
let time = self.last_instruction.elapsed();
self.last_instruction = Instant::now();

println!("{}[0x{:<3x}][{:>19}(0x{:<2x}) Gas Left: {:6?} (Previous took: {:10}μs)",
Copy link
Contributor

Choose a reason for hiding this comment

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

logging macros here? or is it only meant for tests?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not only for tests, but it's a pain to initialize logger in tests. I've made another feature to use println's.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.002%) to 86.474% when pulling fbc0921 on evmdebug-help into e1d3b3f on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 86.478% when pulling f23d038 on evmdebug-help into e1d3b3f on master.

@jacogr jacogr added the M4-core ⛓ Core client code / Rust. label Oct 3, 2016
@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Oct 3, 2016
@gavofyork
Copy link
Contributor

shame there isn't looksawesome :-)

@gavofyork gavofyork merged commit 48bb890 into master Oct 3, 2016
@gavofyork gavofyork deleted the evmdebug-help branch October 3, 2016 21:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants