Searched refs:info_map (Results 1 – 9 of 9) sorted by relevance
/system/extras/simpleperf/ |
D | cmd_debug_unwind_test.cpp | 63 std::unordered_map<std::string, std::string> info_map; in TEST() local 64 ASSERT_TRUE(reader->ReadMetaInfoFeature(&info_map)); in TEST() 65 ASSERT_EQ(info_map["debug_unwind"], "true"); in TEST()
|
D | cmd_record_test.cpp | 566 std::unordered_map<std::string, std::string> info_map; in TEST() local 567 ASSERT_TRUE(reader->ReadMetaInfoFeature(&info_map)); in TEST() 568 ASSERT_NE(info_map.find("simpleperf_version"), info_map.end()); in TEST() 569 ASSERT_NE(info_map.find("timestamp"), info_map.end()); in TEST() 571 ASSERT_NE(info_map.find("product_props"), info_map.end()); in TEST() 572 ASSERT_NE(info_map.find("android_version"), info_map.end()); in TEST() 605 std::unordered_map<std::string, std::string> info_map; in TEST() local 606 ASSERT_TRUE(reader->ReadMetaInfoFeature(&info_map)); in TEST() 607 ASSERT_EQ(info_map["trace_offcpu"], "true"); in TEST() 625 std::unordered_map<std::string, std::string> info_map; in TEST() local [all …]
|
D | record_file_test.cpp | 135 std::unordered_map<std::string, std::string> info_map; in TEST_F() local 138 info_map[s] = s + s; in TEST_F() 140 ASSERT_TRUE(writer->WriteMetaInfoFeature(info_map)); in TEST_F() 149 ASSERT_EQ(read_info_map, info_map); in TEST_F()
|
D | cmd_debug_unwind.cpp | 372 std::unordered_map<std::string, std::string> info_map; in WriteFeatureSections() local 374 if (!reader_->ReadMetaInfoFeature(&info_map)) { in WriteFeatureSections() 379 info_map["debug_unwind"] = "true"; in WriteFeatureSections() 380 info_map["debug_unwind_mem_before"] = stat_.mem_before_unwinding.ToString(); in WriteFeatureSections() 381 info_map["debug_unwind_mem_after"] = stat_.mem_after_unwinding.ToString(); in WriteFeatureSections() 382 if (!writer_->WriteMetaInfoFeature(info_map)) { in WriteFeatureSections()
|
D | cmd_record.cpp | 1636 std::unordered_map<std::string, std::string> info_map; in DumpMetaInfoFeature() local 1637 info_map["simpleperf_version"] = GetSimpleperfVersion(); in DumpMetaInfoFeature() 1638 info_map["system_wide_collection"] = system_wide_collection_ ? "true" : "false"; in DumpMetaInfoFeature() 1639 info_map["trace_offcpu"] = trace_offcpu_ ? "true" : "false"; in DumpMetaInfoFeature() 1642 info_map["event_type_info"] = ScopedEventTypes::BuildString(event_selection_set_.GetEvents()); in DumpMetaInfoFeature() 1644 info_map["product_props"] = android::base::StringPrintf("%s:%s:%s", in DumpMetaInfoFeature() 1648 info_map["android_version"] = android::base::GetProperty("ro.build.version.release", ""); in DumpMetaInfoFeature() 1650 info_map["app_package_name"] = app_package_name_; in DumpMetaInfoFeature() 1653 info_map["clockid"] = clockid_; in DumpMetaInfoFeature() 1654 info_map["timestamp"] = std::to_string(time(nullptr)); in DumpMetaInfoFeature() [all …]
|
D | cmd_dumprecord.cpp | 271 std::unordered_map<std::string, std::string> info_map; in DumpFeatureSection() local 272 if (!record_file_reader_->ReadMetaInfoFeature(&info_map)) { in DumpFeatureSection() 276 for (auto& pair : info_map) { in DumpFeatureSection()
|
D | record_file.h | 59 bool WriteMetaInfoFeature(const std::unordered_map<std::string, std::string>& info_map); 155 bool ReadMetaInfoFeature(std::unordered_map<std::string, std::string>* info_map);
|
D | record_file_writer.cpp | 376 const std::unordered_map<std::string, std::string>& info_map) { in WriteMetaInfoFeature() argument 378 for (auto& pair : info_map) { in WriteMetaInfoFeature() 384 for (auto& pair : info_map) { in WriteMetaInfoFeature()
|
D | record_file_reader.cpp | 474 bool RecordFileReader::ReadMetaInfoFeature(std::unordered_map<std::string, std::string>* info_map) { in ReadMetaInfoFeature() argument 485 (*info_map)[p] = value; in ReadMetaInfoFeature()
|