Lines Matching defs:record
32 HiperfRecord record;
33 SampleStatistic *message = record.mutable_statistic();
37 protpbufCodedOutputStream_->WriteLittleEndian32(record.ByteSizeLong());
38 record.SerializeToCodedStream(protpbufCodedOutputStream_.get());
101 bool ReportProtobufFileWriter::ProcessRecord(const PerfEventRecord &record)
103 HLOGM("ProcessRecord %d", record.GetType());
104 if (record.GetType() == PERF_RECORD_SAMPLE) {
105 HLOGF("record.GetType() == PERF_RECORD_SAMPLE");
106 } else if (record.GetType() == PERF_RECORD_LOST_SAMPLES) {
107 ProcessRecord(*static_cast<const PerfRecordLost *>(&record));
108 } else if (record.GetType() == PERF_RECORD_COMM) {
109 ProcessRecord(*static_cast<const PerfRecordComm *>(&record));
111 HLOGM("skip record type %d", record.GetType());
121 HiperfRecord record;
122 CallStackSample *sample = record.mutable_sample();
137 protpbufCodedOutputStream_->WriteLittleEndian32(record.ByteSizeLong());
138 record.SerializeToCodedStream(protpbufCodedOutputStream_.get());
146 HiperfRecord record;
147 ReportInfo *info = record.mutable_info();
154 protpbufCodedOutputStream_->WriteLittleEndian32(record.ByteSizeLong());
155 record.SerializeToCodedStream(protpbufCodedOutputStream_.get());
169 HiperfRecord record;
170 VirtualThreadInfo *thread = record.mutable_thread();
176 protpbufCodedOutputStream_->WriteLittleEndian32(record.ByteSizeLong());
177 record.SerializeToCodedStream(protpbufCodedOutputStream_.get());
186 HiperfRecord record;
187 SymbolTableFile *message = record.mutable_file();
196 protpbufCodedOutputStream_->WriteLittleEndian32(record.ByteSizeLong());
197 record.SerializeToCodedStream(protpbufCodedOutputStream_.get());
264 PRINT_INDENT(defaultIndent, "record length:%u (%x)\n", recordLength, recordLength);
265 HiperfRecord record;
269 printf("read record error\n");
272 if (!record.ParseFromString(recordBuf)) {
278 Dump(record, defaultIndent);
280 readBack(record);
285 printf("no more record\n");
380 bool ReportProtobufFileReader::Dump(const HiperfRecord &record, int indent)
382 PRINT_INDENT(indent, "%s:\n", record.GetTypeName().c_str());
383 if (record.has_sample()) {
384 return Dump(record.sample(), indent + 1);
385 } else if (record.has_statistic()) {
386 return Dump(record.statistic(), indent + 1);
387 } else if (record.has_file()) {
388 return Dump(record.file(), indent + 1);
389 } else if (record.has_thread()) {
390 return Dump(record.thread(), indent + 1);
391 } else if (record.has_info()) {
392 return Dump(record.info(), indent + 1);