Home
last modified time | relevance | path

Searched refs:ToStdString (Results 1 – 25 of 41) sorted by relevance

12

/external/perfetto/src/base/
Dstring_writer_unittest.cc30 ASSERT_EQ(writer.GetStringView().ToStdString(), "0"); in TEST()
35 ASSERT_EQ(writer.GetStringView().ToStdString(), "132545"); in TEST()
40 ASSERT_EQ(writer.GetStringView().ToStdString(), "523"); in TEST()
45 ASSERT_EQ(writer.GetStringView().ToStdString(), "000"); in TEST()
50 ASSERT_EQ(writer.GetStringView().ToStdString(), "1"); in TEST()
55 ASSERT_EQ(writer.GetStringView().ToStdString(), "001"); in TEST()
60 ASSERT_EQ(writer.GetStringView().ToStdString(), "1"); in TEST()
65 ASSERT_EQ(writer.GetStringView().ToStdString(), " 123"); in TEST()
70 ASSERT_EQ(writer.GetStringView().ToStdString(), " 123"); in TEST()
75 ASSERT_EQ(writer.GetStringView().ToStdString(), "123.250000"); in TEST()
[all …]
Dstring_view_unittest.cc37 EXPECT_EQ(StringView("foo|", 3).ToStdString(), std::string("foo")); in TEST()
98 EXPECT_EQ(StringView().substr(0, 0).ToStdString(), ""); in TEST()
99 EXPECT_EQ(StringView().substr(3, 1).ToStdString(), ""); in TEST()
100 EXPECT_EQ(StringView("foo").substr(3, 1).ToStdString(), ""); in TEST()
101 EXPECT_EQ(StringView("foo").substr(4, 0).ToStdString(), ""); in TEST()
102 EXPECT_EQ(StringView("foo").substr(4, 1).ToStdString(), ""); in TEST()
103 EXPECT_EQ(StringView("foo").substr(0, 1).ToStdString(), "f"); in TEST()
104 EXPECT_EQ(StringView("foo").substr(0, 3).ToStdString(), "foo"); in TEST()
105 EXPECT_EQ(StringView("foo").substr(0, 99).ToStdString(), "foo"); in TEST()
106 EXPECT_EQ(StringView("foo").substr(1, 2).ToStdString(), "oo"); in TEST()
[all …]
/external/perfetto/src/perfetto_cmd/
Dpbtxt_to_pb.cc137 std::string ToStdString() const { return txt.ToStdString(); } in ToStdString() function
301 {"$k", key.ToStdString()}, in StringField()
303 {"$v", value.ToStdString()}, in StringField()
313 {"$k", key.ToStdString()}, in StringField()
315 {"$v", value.ToStdString()}, in StringField()
343 {"$k", key.ToStdString()}, in IdentifierField()
345 {"$v", value.ToStdString()}, in IdentifierField()
358 if (value.ToStdString() != enum_value.name()) in IdentifierField()
369 {"$v", value.ToStdString()}, in IdentifierField()
370 {"$k", key.ToStdString()}, in IdentifierField()
[all …]
/external/perfetto/src/tracing/
Dtrack_event_state_tracker.cc96 frame.name = name.ToStdString(); in ProcessTracePacket()
97 frame.category = category.ToStdString(); in ProcessTracePacket()
192 sequence_state.event_names[entry.iid()] = entry.name().ToStdString(); in UpdateIncrementalState()
196 sequence_state.event_categories[entry.iid()] = entry.name().ToStdString(); in UpdateIncrementalState()
201 entry.name().ToStdString(); in UpdateIncrementalState()
222 track.name = track_descriptor.name().ToStdString(); in UpdateIncrementalState()
230 track.name = process.process_name().ToStdString(); in UpdateIncrementalState()
237 track.name = thread.thread_name().ToStdString(); in UpdateIncrementalState()
/external/perfetto/src/trace_processor/importers/proto/
Dheap_graph_tracker_unittest.cc200 .ToStdString(), in TEST()
204 .ToStdString(), in TEST()
207 .ToStdString(), in TEST()
211 .ToStdString(), in TEST()
215 .ToStdString(), in TEST()
219 .ToStdString(), in TEST()
Dprofiler_util.cc134 PERFETTO_DLOG("Failed to parse %s", location.ToStdString().c_str()); in PackageFromLocation()
138 return package->ToStdString(); in PackageFromLocation()
147 member.deobfuscated_name().ToStdString(); in FullyQualifiedDeobfuscatedName()
153 return cls.deobfuscated_name().ToStdString() + "." + in FullyQualifiedDeobfuscatedName()
Dperf_sample_tracker_unittest.cc94 context.storage->GetString(track_table.name()[*row_id]).ToStdString(); in TEST_F()
125 context.storage->GetString(track_table.name()[*row_id]).ToStdString(); in TEST_F()
149 context.storage->GetString(track_table.name()[*row_id]).ToStdString(); in TEST_F()
Dmemory_tracker_snapshot_parser.cc92 const std::string absolute_name = node.absolute_name().ToStdString(); in ReadProtoSnapshot()
122 entries.emplace_back(entry.name().ToStdString(), unit, in ReadProtoSnapshot()
125 entries.emplace_back(entry.name().ToStdString(), unit, in ReadProtoSnapshot()
126 entry.value_string().ToStdString()); in ReadProtoSnapshot()
Dheap_graph_module.cc305 cls.obfuscated_name().ToStdString().c_str()); in DeobfuscateClass()
326 cls.obfuscated_name().ToStdString().c_str()); in ParseDeobfuscationMapping()
339 std::string merged_obfuscated = cls.obfuscated_name().ToStdString() + in ParseDeobfuscationMapping()
341 member.obfuscated_name().ToStdString(); in ParseDeobfuscationMapping()
Dtrack_event_parser.cc467 std::string concat = storage_->GetString(category_id_).ToStdString() + in ParseTrackAssociation()
468 ":" + legacy_event_.id_scope().ToStdString(); in ParseTrackAssociation()
1148 result = SanitizeDebugAnnotationName(decoder->name().ToStdString()); in ParseDebugAnnotationName()
1150 result = SanitizeDebugAnnotationName(annotation.name().ToStdString()); in ParseDebugAnnotationName()
1260 SanitizeDebugAnnotationName((*key_it).ToStdString()); in ParseNestedValueArgs()
1262 flat_key.ToStdString() + "." + child_name; in ParseNestedValueArgs()
1263 std::string child_key = key.ToStdString() + "." + child_name; in ParseNestedValueArgs()
1272 std::string array_key = key.ToStdString(); in ParseNestedValueArgs()
Dstack_profile_tracker.cc46 string_map_.emplace(id, str.ToStdString()); in AddString()
285 return str->ToStdString(); in FindOrInsertString()
/external/perfetto/src/trace_processor/util/
Ddescriptors.cc34 ? base::StringView(f_decoder.type_name()).ToStdString() in CreateFieldFromDecoder()
42 base::StringView(f_decoder.name()).ToStdString(), in CreateFieldFromDecoder()
76 auto extendee_name = base::StringView(f_decoder.extendee()).ToStdString(); in AddExtensionField()
105 parent_name + "." + base::StringView(decoder.name()).ToStdString(); in AddNestedProtoDescriptors()
176 parent_name + "." + base::StringView(decoder.name()).ToStdString(); in AddEnumProtoDescriptors()
202 enum_value.name().ToStdString()); in AddEnumProtoDescriptors()
219 std::string file_name = file.name().ToStdString(); in AddFromFileDescriptorSet()
225 std::string package = "." + base::StringView(file.package()).ToStdString(); in AddFromFileDescriptorSet()
Dproto_to_args_parser_unittest.cc72 ss << key.flat_key << " " << key.key << " " << value.ToStdString(); in AddString()
98 << value.ToStdString() << std::dec; in AddJson()
/external/perfetto/src/trace_processor/importers/common/
Dsystem_info_tracker.cc36 base::StringToUInt32(release.substr(0, first_dot_pos).ToStdString()); in SetKernelVersion()
39 .ToStdString()); in SetKernelVersion()
/external/perfetto/src/trace_processor/importers/systrace/
Dsystrace_trace_parser.cc134 base::StringToUInt32(tokens[1].ToStdString()); in Parse()
136 base::StringToUInt32(tokens[2].ToStdString()); in Parse()
154 base::StringToUInt32(tokens[1].ToStdString()); in Parse()
156 base::StringToUInt32(tokens[2].ToStdString()); in Parse()
/external/perfetto/include/perfetto/protozero/
Dfield.h32 std::string ToStdString() const { in ToStdString() function
44 std::string ToStdString() const { return std::string(data, size); } in ToStdString() function
133 std::string as_std_string() const { return as_string().ToStdString(); } in as_std_string()
/external/perfetto/src/trace_processor/rpc/
Dhttpd.cc247 body_size = static_cast<size_t>(atoi(hdr_value.ToStdString().c_str())); in ParseOneHttpRequest()
251 http_req.id = atoi(hdr_value.ToStdString().c_str()); in ParseOneHttpRequest()
277 req.method.ToStdString().c_str(), req.uri.ToStdString().c_str(), in HandleRequest()
280 "Access-Control-Allow-Origin: " + req.origin.ToStdString(); in HandleRequest()
Dquery_result_serializer_unittest.cc110 error += result.error().ToStdString(); in DeserializeBuffer()
132 blobs.emplace_back((*it).ToStdString()); in DeserializeBuffer()
134 std::string merged_strings = batch.string_cells().ToStdString(); in DeserializeBuffer()
Drpc.cc92 std::string sql = query.sql_query().ToStdString(); in Query()
121 std::string sql = query.sql_query().ToStdString(); in RawQuery()
/external/perfetto/src/trace_processor/importers/json/
Djson_utils.cc161 std::string child_flat_key = flat_key.ToStdString() + "." + child_name; in AddJsonValueToArgs()
162 std::string child_key = key.ToStdString() + "." + child_name; in AddJsonValueToArgs()
173 std::string array_key = key.ToStdString(); in AddJsonValueToArgs()
Djson_trace_tokenizer.cc306 value_str = dict_str.ToStdString(); in ExtractValueForJsonKey()
587 trace_sorter->PushJsonValue(ts, unparsed.ToStdString()); in ParseInternal()
/external/perfetto/tools/compact_reencode/
Dmain.cc121 auto iid = intern(sswitch.next_comm().ToStdString()); in ReEncodeBundle()
134 auto iid = intern(swaking.comm().ToStdString()); in ReEncodeBundle()
/external/perfetto/src/traced/probes/filesystem/
Dinode_file_data_source.cc125 scan_mount_points_.insert((*mp).ToStdString()); in InodeFileDataSource()
130 scan_roots.push_back((*scan_root).ToStdString()); in InodeFileDataSource()
131 std::string mountpoint = entry.mountpoint().ToStdString(); in InodeFileDataSource()
/external/perfetto/src/traced/probes/packages_list/
Dpackages_list_data_source.cc69 package_name_filter_.emplace((*name).ToStdString()); in PackagesListDataSource()
/external/perfetto/include/perfetto/ext/base/
Dstring_view.h121 std::string ToStdString() const { in ToStdString() function

12