Lines Matching refs:proto

41 namespace proto = simpleperf_report_proto;
68 static proto::Sample_CallChainEntry_ExecutionType ToProtoExecutionType( in ToProtoExecutionType()
72 return proto::Sample_CallChainEntry_ExecutionType_NATIVE_METHOD; in ToProtoExecutionType()
74 return proto::Sample_CallChainEntry_ExecutionType_INTERPRETED_JVM_METHOD; in ToProtoExecutionType()
76 return proto::Sample_CallChainEntry_ExecutionType_JIT_JVM_METHOD; in ToProtoExecutionType()
78 return proto::Sample_CallChainEntry_ExecutionType_ART_METHOD; in ToProtoExecutionType()
81 return proto::Sample_CallChainEntry_ExecutionType_NATIVE_METHOD; in ToProtoExecutionType()
84 static const char* ProtoExecutionTypeToString(proto::Sample_CallChainEntry_ExecutionType type) { in ProtoExecutionTypeToString()
86 case proto::Sample_CallChainEntry_ExecutionType_NATIVE_METHOD: in ProtoExecutionTypeToString()
88 case proto::Sample_CallChainEntry_ExecutionType_INTERPRETED_JVM_METHOD: in ProtoExecutionTypeToString()
90 case proto::Sample_CallChainEntry_ExecutionType_JIT_JVM_METHOD: in ProtoExecutionTypeToString()
92 case proto::Sample_CallChainEntry_ExecutionType_ART_METHOD: in ProtoExecutionTypeToString()
100 proto::Sample_UnwindingResult_ErrorCode error_code) { in ProtoUnwindingErrorCodeToString()
102 case proto::Sample_UnwindingResult::ERROR_NONE: in ProtoUnwindingErrorCodeToString()
104 case proto::Sample_UnwindingResult::ERROR_UNKNOWN: in ProtoUnwindingErrorCodeToString()
106 case proto::Sample_UnwindingResult::ERROR_NOT_ENOUGH_STACK: in ProtoUnwindingErrorCodeToString()
108 case proto::Sample_UnwindingResult::ERROR_MEMORY_INVALID: in ProtoUnwindingErrorCodeToString()
110 case proto::Sample_UnwindingResult::ERROR_UNWIND_INFO: in ProtoUnwindingErrorCodeToString()
112 case proto::Sample_UnwindingResult::ERROR_INVALID_MAP: in ProtoUnwindingErrorCodeToString()
114 case proto::Sample_UnwindingResult::ERROR_MAX_FRAME_EXCEEDED: in ProtoUnwindingErrorCodeToString()
116 case proto::Sample_UnwindingResult::ERROR_REPEATED_FRAME: in ProtoUnwindingErrorCodeToString()
118 case proto::Sample_UnwindingResult::ERROR_INVALID_ELF: in ProtoUnwindingErrorCodeToString()
172 void AddUnwindingResultInProtobuf(proto::Sample_UnwindingResult* proto_unwinding_result);
173 bool WriteRecordInProtobuf(proto::Record& proto_record);
380 proto::Record proto_record; in DumpProtobufReport()
396 const proto::Sample_CallChainEntry& callchain = sample.callchain(i); in DumpProtobufReport()
504 proto::Record proto_record; in PrintMetaInfo()
505 proto::MetaInfo* meta_info = proto_record.mutable_meta_info(); in PrintMetaInfo()
581 proto::Record proto_record; in PrintSampleRecordInProtobuf()
582 proto::Sample* sample = proto_record.mutable_sample(); in PrintSampleRecordInProtobuf()
590 proto::Sample_CallChainEntry* callchain = sample->add_callchain(); in PrintSampleRecordInProtobuf()
627 proto::Sample_UnwindingResult* proto_unwinding_result) { in AddUnwindingResultInProtobuf()
631 proto::Sample_UnwindingResult_ErrorCode error_code; in AddUnwindingResultInProtobuf()
634 error_code = proto::Sample_UnwindingResult::ERROR_NONE; in AddUnwindingResultInProtobuf()
644 error_code = proto::Sample_UnwindingResult::ERROR_NOT_ENOUGH_STACK; in AddUnwindingResultInProtobuf()
646 error_code = proto::Sample_UnwindingResult::ERROR_MEMORY_INVALID; in AddUnwindingResultInProtobuf()
651 error_code = proto::Sample_UnwindingResult::ERROR_UNWIND_INFO; in AddUnwindingResultInProtobuf()
654 error_code = proto::Sample_UnwindingResult::ERROR_INVALID_MAP; in AddUnwindingResultInProtobuf()
657 error_code = proto::Sample_UnwindingResult::ERROR_MAX_FRAME_EXCEEDED; in AddUnwindingResultInProtobuf()
660 error_code = proto::Sample_UnwindingResult::ERROR_REPEATED_FRAME; in AddUnwindingResultInProtobuf()
663 error_code = proto::Sample_UnwindingResult::ERROR_INVALID_ELF; in AddUnwindingResultInProtobuf()
670 error_code = proto::Sample_UnwindingResult::ERROR_UNKNOWN; in AddUnwindingResultInProtobuf()
674 error_code = proto::Sample_UnwindingResult::ERROR_UNKNOWN; in AddUnwindingResultInProtobuf()
680 bool ReportSampleCommand::WriteRecordInProtobuf(proto::Record& proto_record) { in WriteRecordInProtobuf()
690 proto::Record proto_record; in PrintLostSituationInProtobuf()
691 proto::LostSituation* lost = proto_record.mutable_lost(); in PrintLostSituationInProtobuf()
713 proto::Record proto_record; in PrintFileInfoInProtobuf()
714 proto::File* file = proto_record.mutable_file(); in PrintFileInfoInProtobuf()
741 proto::Record proto_record; in PrintThreadInfoInProtobuf()
742 proto::Thread* proto_thread = proto_record.mutable_thread(); in PrintThreadInfoInProtobuf()