Home
last modified time | relevance | path

Searched refs:perf_data_proto (Results 1 – 12 of 12) sorted by relevance

/external/perf_data_converter/src/quipper/
Dperf_serializer_test.cc96 PerfDataProto perf_data_proto; in SerializeAndDeserialize() local
104 ASSERT_TRUE(SerializeFromFileWithOptions(input, options, &perf_data_proto)); in SerializeAndDeserialize()
107 ASSERT_TRUE(reader.Deserialize(perf_data_proto)); in SerializeAndDeserialize()
113 const PerfDataProto_PerfEventStats& in_stats = perf_data_proto.stats(); in SerializeAndDeserialize()
115 PerfSerializer::DeserializeParserStats(perf_data_proto, &out_stats); in SerializeAndDeserialize()
196 PerfDataProto perf_data_proto, perf_data_proto1; in TEST_P() local
273 PerfDataProto perf_data_proto; in TEST_P() local
274 EXPECT_TRUE(SerializeFromFile(input_perf_data, &perf_data_proto)); in TEST_P()
278 ASSERT_GT(perf_data_proto.file_attrs().size(), 0U); in TEST_P()
279 ASSERT_TRUE(perf_data_proto.file_attrs(0).has_attr()); in TEST_P()
[all …]
Dperf_protobuf_io.cc15 bool SerializeFromFile(const string& filename, PerfDataProto* perf_data_proto) { in SerializeFromFile() argument
17 perf_data_proto); in SerializeFromFile()
22 PerfDataProto* perf_data_proto) { in SerializeFromFileWithOptions() argument
29 if (!reader.Serialize(perf_data_proto)) return false; in SerializeFromFileWithOptions()
32 PerfSerializer::SerializeParserStats(parser.stats(), perf_data_proto); in SerializeFromFileWithOptions()
36 bool DeserializeToFile(const PerfDataProto& perf_data_proto, in DeserializeToFile() argument
39 return reader.Deserialize(perf_data_proto) && reader.WriteFile(filename); in DeserializeToFile()
42 bool WriteProtobufToFile(const PerfDataProto& perf_data_proto, in WriteProtobufToFile() argument
45 perf_data_proto.SerializeToString(&output); in WriteProtobufToFile()
50 bool ReadProtobufFromFile(PerfDataProto* perf_data_proto, in ReadProtobufFromFile() argument
[all …]
Dconversion_utils.cc59 PerfDataProto perf_data_proto; in ReadInput() local
63 if (!TextFormat::ParseFromString(text, &perf_data_proto)) return false; in ReadInput()
65 return reader->Deserialize(perf_data_proto); in ReadInput()
89 PerfDataProto perf_data_proto; in WriteOutput() local
90 reader->Serialize(&perf_data_proto); in WriteOutput()
93 PerfSerializer::SerializeParserStats(parser.stats(), &perf_data_proto); in WriteOutput()
97 perf_data_proto.set_timestamp_sec(0); in WriteOutput()
98 if (!TextFormat::PrintToString(perf_data_proto, &output_string)) in WriteOutput()
Dtest_utils.cc75 PerfDataProto perf_data_proto; in PerfDataToProtoRepresentation() local
76 if (!SerializeFromFile(filename, &perf_data_proto)) { in PerfDataToProtoRepresentation()
81 perf_data_proto.set_timestamp_sec(0); in PerfDataToProtoRepresentation()
83 if (output_text && !TextFormat::PrintToString(perf_data_proto, output_text)) { in PerfDataToProtoRepresentation()
86 if (output_data && !perf_data_proto.SerializeToString(output_data)) in PerfDataToProtoRepresentation()
Dperf_recorder_test.cc51 quipper::PerfDataProto perf_data_proto; in TEST_F() local
52 EXPECT_TRUE(perf_data_proto.ParseFromString(output_string)); in TEST_F()
54 const auto& string_meta = perf_data_proto.string_metadata(); in TEST_F()
92 quipper::PerfDataProto perf_data_proto; in TEST_F() local
93 ASSERT_TRUE(perf_data_proto.ParseFromString(output_string)); in TEST_F()
Dperf_protobuf_io.h29 bool WriteProtobufToFile(const quipper::PerfDataProto& perf_data_proto,
34 bool ReadProtobufFromFile(quipper::PerfDataProto* perf_data_proto,
Dquipper.gyp45 'perf_data_proto',
49 'perf_data_proto',
83 'target_name': 'perf_data_proto',
Dperf_serializer.h189 PerfDataProto* perf_data_proto);
190 static void DeserializeParserStats(const PerfDataProto& perf_data_proto,
Dperf_reader.h44 bool Serialize(PerfDataProto* perf_data_proto) const;
46 bool Deserialize(const PerfDataProto& perf_data_proto);
Dperf_serializer.cc990 PerfDataProto* perf_data_proto) { in SerializeParserStats() argument
991 PerfDataProto_PerfEventStats* stats_pb = perf_data_proto->mutable_stats(); in SerializeParserStats()
1002 const PerfDataProto& perf_data_proto, PerfEventStats* stats) { in DeserializeParserStats() argument
1003 const PerfDataProto_PerfEventStats& stats_pb = perf_data_proto.stats(); in DeserializeParserStats()
Dperf_reader.cc196 bool PerfReader::Serialize(PerfDataProto* perf_data_proto) const { in Serialize()
197 perf_data_proto->CopyFrom(*proto_); in Serialize()
202 perf_data_proto->set_timestamp_sec(timestamp_sec.tv_sec); in Serialize()
206 bool PerfReader::Deserialize(const PerfDataProto& perf_data_proto) { in Deserialize() argument
207 proto_->CopyFrom(perf_data_proto); in Deserialize()
/external/perf_data_converter/src/
Dperf_data_converter_test.cc165 PerfDataProto perf_data_proto; in ToPerfDataProto() local
166 EXPECT_TRUE(reader->Serialize(&perf_data_proto)); in ToPerfDataProto()
167 return perf_data_proto; in ToPerfDataProto()
228 const auto perf_data_proto = ToPerfDataProto(raw_perf_data); in TEST_F() local
230 &perf_data_proto, kNoLabels, kNoOptions); in TEST_F()
254 const auto perf_data_proto = ToPerfDataProto(raw_perf_data); in TEST_F() local
256 &perf_data_proto, kPidAndTidLabels, kGroupByPids); in TEST_F()
298 PerfDataProto perf_data_proto; in TEST_F() local
299 ASSERT_TRUE(google::protobuf::TextFormat::ParseFromString(asciiPb, &perf_data_proto)); in TEST_F()
300 ProcessProfiles pps = PerfDataProtoToProfiles(&perf_data_proto); in TEST_F()