code: private void recordDeserializeRequest(RequestCommand requestCommand) {
          if (!RpcInternalContext.isAttachmentEnable()) {
              return;
          }
          RpcInternalContext context = RpcInternalContext.getContext();
          int cost = context.getStopWatch().tick().read();
          int requestSize = RpcProtocol.getRequestHeaderLength()
              + requestCommand.getClazzLength()
              + requestCommand.getContentLength()
              + requestCommand.getHeaderLength();
          // 记录请求反序列化大小和请求反序列化耗时
          context.setAttachment(RpcConstants.INTERNAL_KEY_REQ_SIZE, requestSize);
          context.setAttachment(RpcConstants.INTERNAL_KEY_REQ_DESERIALIZE_TIME, cost);
      }
docs: 服务端记录反序列化请求的大小和耗时
  
  @param requestCommand 请求对象