• Home
  • Raw
  • Download

Lines Matching refs:record

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