private void generateTracingMemory(final VmOperationExecutionReport report) {
    switch (currentOperation) {
      case "CALLDATACOPY":
      case "CODECOPY":
      case "EXTCODECOPY":
      case "MLOAD":
      case "MSTORE":
      case "MSTORE8":
      case "RETURNDATACOPY":
        currentTraceFrame
            .getMaybeUpdatedMemory()
            .map(
                updatedMemory ->
                    new Mem(updatedMemory.getValue().toHexString(), updatedMemory.getOffset()))
            .ifPresent(report::setMem);
        break;
      default:
        break;
    }
  }
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