improve perf trace (#3032)

Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
pull/3061/head
matkt 3 years ago committed by GitHub
parent c7e9134ab8
commit 270a066ef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ethereum/core/src/main/java/org/hyperledger/besu/ethereum/debug/TraceFrame.java
  2. 6
      ethereum/core/src/main/java/org/hyperledger/besu/ethereum/vm/DebugOperationTracer.java

@ -93,7 +93,7 @@ public class TraceFrame {
this.exceptionalHaltReason = exceptionalHaltReason;
this.recipient = recipient;
this.value = value;
this.inputData = inputData.copy();
this.inputData = inputData;
this.outputData = outputData;
this.stack = stack;
this.memory = memory;

@ -80,7 +80,7 @@ public class DebugOperationTracer implements OperationTracer {
operationResult.getHaltReason(),
frame.getRecipientAddress(),
frame.getApparentValue(),
inputData,
pc == 0 ? inputData.copy() : inputData,
outputData,
stack,
memory,
@ -113,7 +113,7 @@ public class DebugOperationTracer implements OperationTracer {
Optional.empty(),
frame.getRecipientAddress(),
frame.getValue(),
frame.getInputData(),
frame.getInputData().copy(),
frame.getOutputData(),
Optional.empty(),
Optional.empty(),
@ -159,7 +159,7 @@ public class DebugOperationTracer implements OperationTracer {
Optional.of(exceptionalHaltReason),
frame.getRecipientAddress(),
frame.getValue(),
frame.getInputData(),
frame.getInputData().copy(),
frame.getOutputData(),
Optional.empty(),
Optional.empty(),

Loading…
Cancel
Save