Better tracing for VM run:

+ vm.info --> is giving just ops
+ vm.debug --> gives mass of information about stack/memory/storage during each op
This commit is contained in:
romanman 2014-07-13 23:59:10 +03:00
parent 60b288d4fa
commit 48691c745a
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ public class VM {
byte op = program.getCurrentOp();
program.setLastOp(op);
logger.debug("[ {} ] Op: {}" ,program.getPC(), OpCode.code(op).name());
logger.info("[ {} ] Op: [ {} ] Gas: [ {} ]" ,program.getPC(),
OpCode.code(op).name(), program.getGas().longValue());
int oldMemSize = program.getMemSize();