Home
last modified time | relevance | path

Searched refs:info_map (Results 1 – 10 of 10) sorted by relevance

/system/extras/simpleperf/
DOfflineUnwinder_test.cpp94 std::unordered_map<std::string, std::string> info_map; in TEST() local
95 OfflineUnwinder::CollectMetaInfo(&info_map); in TEST()
96 if (auto it = info_map.find(OfflineUnwinder::META_KEY_ARM64_PAC_MASK); it != info_map.end()) { in TEST()
104 std::unordered_map<std::string, std::string> info_map; in TEST() local
105 info_map[OfflineUnwinder::META_KEY_ARM64_PAC_MASK] = "0xff00000000"; in TEST()
107 unwinder->LoadMetaInfo(info_map); in TEST()
Drecord_file_test.cpp135 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()
147 ASSERT_EQ(reader->GetMetaInfoFeature(), info_map); in TEST_F()
Dcmd_debug_unwind.cpp373 std::unordered_map<std::string, std::string> info_map; in WriteFeatureSections() local
375 info_map = reader_->GetMetaInfoFeature(); in WriteFeatureSections()
378 info_map["debug_unwind"] = "true"; in WriteFeatureSections()
379 info_map["debug_unwind_mem_before"] = stat_.mem_before_unwinding.ToString(); in WriteFeatureSections()
380 info_map["debug_unwind_mem_after"] = stat_.mem_after_unwinding.ToString(); in WriteFeatureSections()
381 if (!writer_->WriteMetaInfoFeature(info_map)) { in WriteFeatureSections()
DOfflineUnwinder.cpp197 void OfflineUnwinder::CollectMetaInfo(std::unordered_map<std::string, std::string>* info_map in CollectMetaInfo() argument
211 (*info_map)[META_KEY_ARM64_PAC_MASK] = android::base::StringPrintf("0x%" PRIx64, pac_mask); in CollectMetaInfo()
217 const std::unordered_map<std::string, std::string>& info_map) { in LoadMetaInfo() argument
218 if (auto it = info_map.find(META_KEY_ARM64_PAC_MASK); it != info_map.end()) { in LoadMetaInfo()
Dcmd_record_test.cpp619 auto& info_map = reader->GetMetaInfoFeature(); in TEST() local
620 ASSERT_NE(info_map.find("simpleperf_version"), info_map.end()); in TEST()
621 ASSERT_NE(info_map.find("timestamp"), info_map.end()); in TEST()
623 ASSERT_NE(info_map.find("product_props"), info_map.end()); in TEST()
624 ASSERT_NE(info_map.find("android_version"), info_map.end()); in TEST()
657 auto info_map = reader->GetMetaInfoFeature(); in TEST() local
658 ASSERT_EQ(info_map["trace_offcpu"], "true"); in TEST()
684 auto info_map = reader->GetMetaInfoFeature(); in TEST() local
685 ASSERT_EQ(info_map["clockid"], "monotonic"); in TEST()
DOfflineUnwinder_impl.h45 void LoadMetaInfo(const std::unordered_map<std::string, std::string>& info_map) override;
DOfflineUnwinder.h72 static void CollectMetaInfo(std::unordered_map<std::string, std::string>* info_map);
Dcmd_record.cpp1765 std::unordered_map<std::string, std::string> info_map; in DumpMetaInfoFeature() local
1766 info_map["simpleperf_version"] = GetSimpleperfVersion(); in DumpMetaInfoFeature()
1767 info_map["system_wide_collection"] = system_wide_collection_ ? "true" : "false"; in DumpMetaInfoFeature()
1768 info_map["trace_offcpu"] = trace_offcpu_ ? "true" : "false"; in DumpMetaInfoFeature()
1771 info_map["event_type_info"] = ScopedEventTypes::BuildString(event_selection_set_.GetEvents()); in DumpMetaInfoFeature()
1773 info_map["product_props"] = android::base::StringPrintf("%s:%s:%s", in DumpMetaInfoFeature()
1777 info_map["android_version"] = android::base::GetProperty("ro.build.version.release", ""); in DumpMetaInfoFeature()
1779 info_map["app_package_name"] = app_package_name_; in DumpMetaInfoFeature()
1782 info_map["clockid"] = clockid_; in DumpMetaInfoFeature()
1783 info_map["timestamp"] = std::to_string(time(nullptr)); in DumpMetaInfoFeature()
[all …]
Drecord_file_writer.cpp399 const std::unordered_map<std::string, std::string>& info_map) { in WriteMetaInfoFeature() argument
401 for (auto& pair : info_map) { in WriteMetaInfoFeature()
407 for (auto& pair : info_map) { in WriteMetaInfoFeature()
Drecord_file.h61 bool WriteMetaInfoFeature(const std::unordered_map<std::string, std::string>& info_map);