Skip to content

Commit

Permalink
improve perf trace (hyperledger#3032)
Browse files Browse the repository at this point in the history
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
  • Loading branch information
matkt authored and eum602 committed Nov 3, 2023
1 parent 2368a21 commit 42b9add
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void traceExecution(final MessageFrame frame, final ExecuteOperation exec
operationResult.getHaltReason(),
frame.getRecipientAddress(),
frame.getApparentValue(),
inputData,
pc == 0 ? inputData.copy() : inputData,
outputData,
stack,
memory,
Expand Down Expand Up @@ -113,7 +113,7 @@ public void tracePrecompileCall(
Optional.empty(),
frame.getRecipientAddress(),
frame.getValue(),
frame.getInputData(),
frame.getInputData().copy(),
frame.getOutputData(),
Optional.empty(),
Optional.empty(),
Expand Down Expand Up @@ -159,7 +159,7 @@ public void traceAccountCreationResult(
Optional.of(exceptionalHaltReason),
frame.getRecipientAddress(),
frame.getValue(),
frame.getInputData(),
frame.getInputData().copy(),
frame.getOutputData(),
Optional.empty(),
Optional.empty(),
Expand Down

0 comments on commit 42b9add

Please sign in to comment.