Home
last modified time | relevance | path

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

/aosp12/system/extras/simpleperf/
H A 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()
H A Drecord_file_test.cpp139 std::unordered_map<std::string, std::string> info_map; in TEST_F() local
142 info_map[s] = s + s; in TEST_F()
144 ASSERT_TRUE(writer->WriteMetaInfoFeature(info_map)); in TEST_F()
151 ASSERT_EQ(reader->GetMetaInfoFeature(), info_map); in TEST_F()
H A DOfflineUnwinder.cpp216 void OfflineUnwinder::CollectMetaInfo(std::unordered_map<std::string, std::string>* info_map in CollectMetaInfo() argument
230 (*info_map)[META_KEY_ARM64_PAC_MASK] = android::base::StringPrintf("0x%" PRIx64, pac_mask); in CollectMetaInfo()
236 const std::unordered_map<std::string, std::string>& info_map) { in LoadMetaInfo() argument
237 if (auto it = info_map.find(META_KEY_ARM64_PAC_MASK); it != info_map.end()) { in LoadMetaInfo()
H A Dcmd_record.cpp1904 std::unordered_map<std::string, std::string> info_map = extra_meta_info_; in DumpMetaInfoFeature() local
1905 info_map["simpleperf_version"] = GetSimpleperfVersion(); in DumpMetaInfoFeature()
1907 info_map["trace_offcpu"] = trace_offcpu_ ? "true" : "false"; in DumpMetaInfoFeature()
1912 info_map["product_props"] = android::base::StringPrintf( in DumpMetaInfoFeature()
1920 info_map["app_package_name"] = app_package_name_; in DumpMetaInfoFeature()
1922 info_map["app_type"] = GetAppType(app_package_name_); in DumpMetaInfoFeature()
1927 info_map["recording_process"] = std::to_string(getpid()); in DumpMetaInfoFeature()
1930 info_map["clockid"] = clockid_; in DumpMetaInfoFeature()
1931 info_map["timestamp"] = std::to_string(time(nullptr)); in DumpMetaInfoFeature()
1934 OfflineUnwinder::CollectMetaInfo(&info_map); in DumpMetaInfoFeature()
[all …]
H A Dcmd_record_test.cpp507 auto& info_map = reader->GetMetaInfoFeature(); in TEST() local
508 ASSERT_NE(info_map.find("simpleperf_version"), info_map.end()); in TEST()
509 ASSERT_NE(info_map.find("timestamp"), info_map.end()); in TEST()
511 ASSERT_NE(info_map.find("product_props"), info_map.end()); in TEST()
512 ASSERT_NE(info_map.find("android_version"), info_map.end()); in TEST()
546 auto info_map = reader->GetMetaInfoFeature(); in TEST() local
547 ASSERT_EQ(info_map["trace_offcpu"], "true"); in TEST()
572 auto info_map = reader->GetMetaInfoFeature(); in TEST() local
573 ASSERT_EQ(info_map["clockid"], "monotonic"); in TEST()
H A DOfflineUnwinder_impl.h45 void LoadMetaInfo(const std::unordered_map<std::string, std::string>& info_map) override;
H A DOfflineUnwinder.h73 static void CollectMetaInfo(std::unordered_map<std::string, std::string>* info_map);
H A Drecord_file_writer.cpp407 const std::unordered_map<std::string, std::string>& info_map) { in WriteMetaInfoFeature() argument
409 for (auto& pair : info_map) { in WriteMetaInfoFeature()
415 for (auto& pair : info_map) { in WriteMetaInfoFeature()
H A Dcmd_inject.cpp216 const auto& info_map = record_file_reader_->GetMetaInfoFeature(); in ProcessInputFile() local
217 if (auto it = info_map.find("recording_process"); it == info_map.end()) { in ProcessInputFile()
H A Drecord_file.h89 bool WriteMetaInfoFeature(const std::unordered_map<std::string, std::string>& info_map);