/art/runtime/jit/ |
D | profile_saver_test.cc | 27 using Hotness = ProfileCompilationInfo::MethodHotness; typedef 58 Hotness::Flag AnnotateSampleFlags(uint32_t flags) { in AnnotateSampleFlags() 92 Hotness::Flag expected_flag = Is64BitInstructionSet(Runtime::Current()->GetInstructionSet()) in TEST_F() 93 ? Hotness::kFlag64bit in TEST_F() 94 : Hotness::kFlag32bit; in TEST_F() 95 Hotness::Flag actual = AnnotateSampleFlags(Hotness::kFlagHot); in TEST_F() 97 ASSERT_EQ(static_cast<Hotness::Flag>(expected_flag | Hotness::kFlagHot), actual); in TEST_F() 101 Hotness::Flag actual = AnnotateSampleFlags(Hotness::kFlagHot); in TEST_F() 103 ASSERT_EQ(Hotness::kFlagHot, actual); in TEST_F()
|
D | profiling_info_test.cc | 38 using Hotness = ProfileCompilationInfo::MethodHotness; typedef 72 Hotness::Flag flags) { in SaveProfilingInfo() 104 Hotness::Flag flags, in SaveProfilingInfoWithFakeInlineCaches() 188 static_cast<Hotness::Flag>(Hotness::kFlagHot | Hotness::kFlagPostStartup))); in TEST_F() 197 Hotness h = info1.GetMethodHotness(MethodReference(m->GetDexFile(), m->GetDexMethodIndex())); in TEST_F() 208 static_cast<Hotness::Flag>(Hotness::kFlagHot | Hotness::kFlagStartup))); in TEST_F() 217 Hotness h = info2.GetMethodHotness(MethodReference(m->GetDexFile(), m->GetDexMethodIndex())); in TEST_F() 222 Hotness h = info2.GetMethodHotness(MethodReference(m->GetDexFile(), m->GetDexMethodIndex())); in TEST_F() 247 static_cast<Hotness::Flag>(Hotness::kFlagHot | Hotness::kFlagStartup), in TEST_F() 258 Hotness h = info.GetMethodHotness(method_ref); in TEST_F()
|
D | profile_saver.cc | 48 using Hotness = ProfileCompilationInfo::MethodHotness; typedef 630 (startup ? Hotness::kFlagStartup : Hotness::kFlagPostStartup) | extra_flags_; in UpdateProfile() 643 return enum_cast<ProfileCompilationInfo::MethodHotness::Flag>(base_flags | Hotness::kFlagHot); in UpdateProfile() 893 AnnotateSampleFlags(Hotness::kFlagHot | Hotness::kFlagPostStartup), in ProcessProfilingInfo() 1311 ? Hotness::kFlag64bit in GetExtraMethodHotnessFlags() 1312 : Hotness::kFlag32bit; in GetExtraMethodHotnessFlags() 1318 Hotness::Flag ProfileSaver::AnnotateSampleFlags(uint32_t flags) { in AnnotateSampleFlags() 1320 return static_cast<Hotness::Flag>(flags | extra_flags); in AnnotateSampleFlags()
|
/art/libprofile/profile/ |
D | profile_compilation_info_test.cc | 197 static_cast<Hotness::Flag>(1 << flag_index))); in SizeStressTest() 206 static_cast<Hotness::Flag>(1 << flag_index))); in SizeStressTest() 227 WhichPowerOf2(static_cast<uint32_t>(Hotness::kFlagLastBoot)); 229 WhichPowerOf2(static_cast<uint32_t>(Hotness::kFlagLastRegular)); 677 Hotness hotness = GetMethod(info, dex2, /*method_idx=*/ 0); in TEST_F() 816 AddMethod(&test_info, dex1, 1, Hotness::kFlagStartup); in TEST_F() 817 AddMethod(&test_info, dex1, 5, Hotness::kFlagPostStartup); in TEST_F() 818 AddMethod(&test_info, dex2, 2, Hotness::kFlagStartup); in TEST_F() 819 AddMethod(&test_info, dex2, 4, Hotness::kFlagPostStartup); in TEST_F() 846 AddMethod(&merge_info, dex1, 11, Hotness::kFlagStartup); in TEST_F() [all …]
|
D | profile_test_helper.h | 32 using Hotness = ProfileCompilationInfo::MethodHotness; variable 42 return AddMethod(info, dex, method_idx, Hotness::kFlagHot, annotation); 49 Hotness::Flag flags, 61 return AddMethod(info, dex, method_idx, inline_caches, Hotness::kFlagHot, annotation); 69 Hotness::Flag flags,
|
/art/profman/ |
D | boot_image_profile.cc | 33 using Hotness = ProfileCompilationInfo::MethodHotness; typedef 89 if (metadata.HasFlagSet(Hotness::kFlagHot)) { in MethodToProfileFormat() 92 if (metadata.HasFlagSet(Hotness::kFlagStartup)) { in MethodToProfileFormat() 95 if (metadata.HasFlagSet(Hotness::kFlagPostStartup)) { in MethodToProfileFormat() 234 && ((metadata.GetFlags() & Hotness::Flag::kFlagStartup) != 0)) { in GenerateBootImageProfile() 235 metadata.AddFlag(Hotness::Flag::kFlagHot); in GenerateBootImageProfile()
|
D | profile_assistant_test.cc | 78 Hotness::Flag flags = in SetupProfile() 79 static_cast<Hotness::Flag>(Hotness::kFlagHot | Hotness::kFlagPostStartup); in SetupProfile() 103 AddMethod(info, dex, idx, Hotness::kFlagHot); in SetupBasicProfile() 106 AddMethod(info, dex, idx, Hotness::kFlagStartup); in SetupBasicProfile() 109 AddMethod(info, dex, idx, Hotness::kFlagPostStartup); in SetupBasicProfile() 2174 AddMethod(&info, &d1, 0, Hotness::kFlagHot, psa1); in TEST_F() 2175 AddMethod(&info, &d2, 0, Hotness::kFlagHot, psa2); in TEST_F()
|
/art/dex2oat/ |
D | dex2oat_test.cc | 1245 using Hotness = ProfileCompilationInfo::MethodHotness; in TEST_F() typedef 1271 info.AddMethodsForDex(static_cast<Hotness::Flag>(Hotness::kFlagHot | Hotness::kFlagStartup), in TEST_F() 1276 Hotness::kFlagStartup, dex.get(), startup_methods.begin(), startup_methods.end()); in TEST_F() 1278 Hotness::kFlagPostStartup, dex.get(), post_methods.begin(), post_methods.end()); in TEST_F() 2080 using Hotness = ProfileCompilationInfo::MethodHotness; in TEST_F() typedef 2137 info.AddMethodsForDex(Hotness::kFlagStartup, dex_file.get(), methods.begin(), methods.end()); in TEST_F()
|
/art/dexlayout/ |
D | dexlayout.cc | 2065 using Hotness = ProfileCompilationInfo::MethodHotness; in LayoutCodeItems() typedef 2066 Hotness hotness = info_->GetMethodHotness(MethodReference(dex_file, method_id->GetIndex())); in LayoutCodeItems() 2072 } else if (is_startup_clinit || hotness.GetFlags() == Hotness::kFlagStartup) { in LayoutCodeItems()
|