private VmOperationExecutionReport generateExecutionReport() {
    final VmOperationExecutionReport report = new VmOperationExecutionReport();
    // set gas remaining
    report.setUsed(
        currentTraceFrame.getGasRemaining() - (currentTraceFrame.getGasCost().orElse(0L)));
    return report;
  }
Add a trace frame to the VmTrace result object.

@param frame the current trace frame
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/results/tracing/vm/VmTraceGenerator.java