def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Stats_Req') oprot.writeFieldStop() oprot.writeStructEnd()
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('FuncStat') if self.file is not None: oprot.writeFieldBegin('file', TType.STRING, 1) oprot.writeString(self.file) oprot.writeFieldEnd() if self.line is not None: oprot.writeFieldBegin('line', TType.I32, 2) oprot.writeI32(self.line) oprot.writeFieldEnd() if self.func_name is not None: oprot.writeFieldBegin('func_name', TType.STRING, 3) oprot.writeString(self.func_name) oprot.writeFieldEnd() if self.calls_count is not None: oprot.writeFieldBegin('calls_count', TType.I32, 4) oprot.writeI32(self.calls_count) oprot.writeFieldEnd() if self.total_time is not None: oprot.writeFieldBegin('total_time', TType.DOUBLE, 5) oprot.writeDouble(self.total_time) oprot.writeFieldEnd() if self.own_time is not None: oprot.writeFieldBegin('own_time', TType.DOUBLE, 6) oprot.writeDouble(self.own_time) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write( fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('FuncStat') if self.file is not None: oprot.writeFieldBegin('file', TType.STRING, 1) oprot.writeString(self.file) oprot.writeFieldEnd() if self.line is not None: oprot.writeFieldBegin('line', TType.I32, 2) oprot.writeI32(self.line) oprot.writeFieldEnd() if self.func_name is not None: oprot.writeFieldBegin('func_name', TType.STRING, 3) oprot.writeString(self.func_name) oprot.writeFieldEnd() if self.calls_count is not None: oprot.writeFieldBegin('calls_count', TType.I32, 4) oprot.writeI32(self.calls_count) oprot.writeFieldEnd() if self.total_time is not None: oprot.writeFieldBegin('total_time', TType.DOUBLE, 5) oprot.writeDouble(self.total_time) oprot.writeFieldEnd() if self.own_time is not None: oprot.writeFieldBegin('own_time', TType.DOUBLE, 6) oprot.writeDouble(self.own_time) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
def write(self, oprot): if (oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None): oprot.trans.write( fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStruct(self, self.thrift_spec)
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write( fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Stats_Req') oprot.writeFieldStop() oprot.writeStructEnd()
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('SaveSnapshot_Req') if self.filepath is not None: oprot.writeFieldBegin('filepath', TType.STRING, 1) oprot.writeString(self.filepath) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write( fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('SaveSnapshot_Req') if self.filepath is not None: oprot.writeFieldBegin('filepath', TType.STRING, 1) oprot.writeString(self.filepath) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Stats') if self.func_stats is not None: oprot.writeFieldBegin('func_stats', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.func_stats)) for iter13 in self.func_stats: iter13.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write( fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Stats') if self.func_stats is not None: oprot.writeFieldBegin('func_stats', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.func_stats)) for iter13 in self.func_stats: iter13.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('ProfilerResponse') if self.id is not None: oprot.writeFieldBegin('id', TType.I32, 1) oprot.writeI32(self.id) oprot.writeFieldEnd() if self.ystats is not None: oprot.writeFieldBegin('ystats', TType.STRUCT, 2) self.ystats.write(oprot) oprot.writeFieldEnd() if self.snapshot_filepath is not None: oprot.writeFieldBegin('snapshot_filepath', TType.STRING, 3) oprot.writeString(self.snapshot_filepath) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write( fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('ProfilerResponse') if self.id is not None: oprot.writeFieldBegin('id', TType.I32, 1) oprot.writeI32(self.id) oprot.writeFieldEnd() if self.ystats is not None: oprot.writeFieldBegin('ystats', TType.STRUCT, 2) self.ystats.write(oprot) oprot.writeFieldEnd() if self.snapshot_filepath is not None: oprot.writeFieldBegin('snapshot_filepath', TType.STRING, 3) oprot.writeString(self.snapshot_filepath) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
def write(self, oprot): if ( oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None ): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin("Function") if self.func_stat is not None: oprot.writeFieldBegin("func_stat", TType.STRUCT, 1) self.func_stat.write(oprot) oprot.writeFieldEnd() if self.callers is not None: oprot.writeFieldBegin("callers", TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.callers)) for iter6 in self.callers: iter6.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
def write(self, oprot): if ( oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None ): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin("ProfilerRequest") if self.id is not None: oprot.writeFieldBegin("id", TType.I32, 1) oprot.writeI32(self.id) oprot.writeFieldEnd() if self.ystats is not None: oprot.writeFieldBegin("ystats", TType.STRUCT, 2) self.ystats.write(oprot) oprot.writeFieldEnd() if self.save_snapshot is not None: oprot.writeFieldBegin("save_snapshot", TType.STRUCT, 3) self.save_snapshot.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()