/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() 103 Hotness::Flag flags, in SaveProfilingInfoWithFakeInlineCaches() 187 static_cast<Hotness::Flag>(Hotness::kFlagHot | Hotness::kFlagPostStartup))); in TEST_F() 196 Hotness h = info1.GetMethodHotness(MethodReference(m->GetDexFile(), m->GetDexMethodIndex())); in TEST_F() 207 static_cast<Hotness::Flag>(Hotness::kFlagHot | Hotness::kFlagStartup))); in TEST_F() 216 Hotness h = info2.GetMethodHotness(MethodReference(m->GetDexFile(), m->GetDexMethodIndex())); in TEST_F() 221 Hotness h = info2.GetMethodHotness(MethodReference(m->GetDexFile(), m->GetDexMethodIndex())); in TEST_F() 246 static_cast<Hotness::Flag>(Hotness::kFlagHot | Hotness::kFlagStartup), in TEST_F() 257 Hotness h = info.GetMethodHotness(method_ref); in TEST_F()
|
D | profile_saver.cc | 48 using Hotness = ProfileCompilationInfo::MethodHotness; typedef 631 (startup ? Hotness::kFlagStartup : Hotness::kFlagPostStartup) | extra_flags_; in UpdateProfile() 643 return enum_cast<ProfileCompilationInfo::MethodHotness::Flag>(base_flags | Hotness::kFlagHot); in UpdateProfile() 887 AnnotateSampleFlags(Hotness::kFlagHot | Hotness::kFlagPostStartup), in ProcessProfilingInfo() 1305 ? Hotness::kFlag64bit in GetExtraMethodHotnessFlags() 1306 : Hotness::kFlag32bit; in GetExtraMethodHotnessFlags() 1312 Hotness::Flag ProfileSaver::AnnotateSampleFlags(uint32_t flags) { in AnnotateSampleFlags() 1314 return static_cast<Hotness::Flag>(flags | extra_flags); in AnnotateSampleFlags()
|
/art/libprofile/profile/ |
D | profile_compilation_info_test.cc | 191 static_cast<Hotness::Flag>(1 << flag_index))); in SizeStressTest() 200 static_cast<Hotness::Flag>(1 << flag_index))); in SizeStressTest() 221 WhichPowerOf2(static_cast<uint32_t>(Hotness::kFlagLastBoot)); 223 WhichPowerOf2(static_cast<uint32_t>(Hotness::kFlagLastRegular)); 665 Hotness hotness = GetMethod(info, dex2, /*method_idx=*/ 0); in TEST_F() 804 AddMethod(&test_info, dex1, 1, Hotness::kFlagStartup); in TEST_F() 805 AddMethod(&test_info, dex1, 5, Hotness::kFlagPostStartup); in TEST_F() 806 AddMethod(&test_info, dex2, 2, Hotness::kFlagStartup); in TEST_F() 807 AddMethod(&test_info, dex2, 4, Hotness::kFlagPostStartup); in TEST_F() 834 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 | 76 Hotness::Flag flags = in SetupProfile() 77 static_cast<Hotness::Flag>(Hotness::kFlagHot | Hotness::kFlagPostStartup); in SetupProfile() 101 AddMethod(info, dex, idx, Hotness::kFlagHot); in SetupBasicProfile() 104 AddMethod(info, dex, idx, Hotness::kFlagStartup); in SetupBasicProfile() 107 AddMethod(info, dex, idx, Hotness::kFlagPostStartup); in SetupBasicProfile() 1971 AddMethod(&info, &d1, 0, Hotness::kFlagHot, psa1); in TEST_F() 1972 AddMethod(&info, &d2, 0, Hotness::kFlagHot, psa2); in TEST_F()
|
/art/dex2oat/ |
D | dex2oat_test.cc | 1146 using Hotness = ProfileCompilationInfo::MethodHotness; in TEST_F() typedef 1173 static_cast<Hotness::Flag>(Hotness::kFlagHot | Hotness::kFlagStartup), in TEST_F() 1178 Hotness::kFlagStartup, in TEST_F() 1183 Hotness::kFlagPostStartup, in TEST_F() 2040 using Hotness = ProfileCompilationInfo::MethodHotness; in TEST_F() typedef 2096 info.AddMethodsForDex(Hotness::kFlagStartup, dex_file.get(), methods.begin(), methods.end()); in TEST_F()
|
/art/dexlayout/ |
D | dexlayout.cc | 1763 using Hotness = ProfileCompilationInfo::MethodHotness; in LayoutCodeItems() typedef 1764 Hotness hotness = info_->GetMethodHotness(MethodReference(dex_file, method_id->GetIndex())); in LayoutCodeItems() 1770 } else if (is_startup_clinit || hotness.GetFlags() == Hotness::kFlagStartup) { in LayoutCodeItems()
|