Lines Matching refs:sample
337 auto& sample = proto_record.sample(); in DumpProtobufReport() local
340 FprintIndented(report_fp_, 1, "event_type_id: %zu\n", sample.event_type_id()); in DumpProtobufReport()
341 FprintIndented(report_fp_, 1, "time: %" PRIu64 "\n", sample.time()); in DumpProtobufReport()
342 FprintIndented(report_fp_, 1, "event_count: %" PRIu64 "\n", sample.event_count()); in DumpProtobufReport()
343 FprintIndented(report_fp_, 1, "thread_id: %d\n", sample.thread_id()); in DumpProtobufReport()
345 for (int i = 0; i < sample.callchain_size(); ++i) { in DumpProtobufReport()
346 const proto::Sample_CallChainEntry& callchain = sample.callchain(i); in DumpProtobufReport()
532 proto::Sample* sample = proto_record.mutable_sample(); in PrintSampleRecordInProtobuf() local
533 sample->set_time(r.time_data.time); in PrintSampleRecordInProtobuf()
534 sample->set_event_count(r.period_data.period); in PrintSampleRecordInProtobuf()
535 sample->set_thread_id(r.tid_data.tid); in PrintSampleRecordInProtobuf()
536 sample->set_event_type_id(record_file_reader_->GetAttrIndexOfRecord(&r)); in PrintSampleRecordInProtobuf()
539 proto::Sample_CallChainEntry* callchain = sample->add_callchain(); in PrintSampleRecordInProtobuf()