/art/libprofile/profile/ |
D | profile_compilation_info_test.cc | 67 ProfileCompilationInfo::MethodHotness GetMethod( in GetMethod() 68 const ProfileCompilationInfo& info, in GetMethod() 115 while (cache.classes.size() < ProfileCompilationInfo::kIndividualInlineCacheSize) { in MakeMegamorphic() 137 ProfileCompilationInfo saved_info; in TestProfileLoadFromZip() 161 ProfileCompilationInfo loaded_info; in TestProfileLoadFromZip() 172 bool IsEmpty(const ProfileCompilationInfo& info) { in IsEmpty() 177 ProfileCompilationInfo boot_profile(/*for_boot_image=*/ true); in SizeStressTest() 178 ProfileCompilationInfo reg_profile(/*for_boot_image=*/ false); in SizeStressTest() 218 ProfileCompilationInfo loaded_boot(/*for_boot_image=*/ true); in SizeStressTest() 219 ProfileCompilationInfo loaded_reg; in SizeStressTest() [all …]
|
D | profile_compilation_info.cc | 70 const uint8_t ProfileCompilationInfo::kProfileMagic[] = { 'p', 'r', 'o', '\0' }; 72 const uint8_t ProfileCompilationInfo::kProfileVersion[] = { '0', '1', '5', '\0' }; 73 const uint8_t ProfileCompilationInfo::kProfileVersionForBootImage[] = { '0', '1', '6', '\0' }; 75 static_assert(sizeof(ProfileCompilationInfo::kProfileVersion) == 4, 77 static_assert(sizeof(ProfileCompilationInfo::kProfileVersionForBootImage) == 4, 82 const char ProfileCompilationInfo::kDexMetadataProfileEntry[] = "primary.prof"; 87 const ProfileCompilationInfo::ProfileSampleAnnotation 88 ProfileCompilationInfo::ProfileSampleAnnotation::kNone = 89 ProfileCompilationInfo::ProfileSampleAnnotation(""); 115 static_assert(sizeof(ProfileCompilationInfo::kIndividualInlineCacheSize) == sizeof(uint8_t), [all …]
|
D | profile_test_helper.h | 32 using Hotness = ProfileCompilationInfo::MethodHotness; 34 using ProfileSampleAnnotation = ProfileCompilationInfo::ProfileSampleAnnotation; 35 using ProfileIndexType = ProfileCompilationInfo::ProfileIndexType; 38 ProfileCompilationInfo* info, 46 ProfileCompilationInfo* info, 58 ProfileCompilationInfo* info, 67 ProfileCompilationInfo* info, 79 static bool AddClass(ProfileCompilationInfo* info, 86 static bool ProfileIndexMatchesDexFile(const ProfileCompilationInfo& info, in ProfileIndexMatchesDexFile() 97 const ProfileCompilationInfo::MethodHotness& actual_hotness, in EqualInlineCaches() [all …]
|
D | profile_compilation_info.h | 87 class ProfileCompilationInfo { 255 friend class ProfileCompilationInfo; variable 291 ProfileCompilationInfo(); 292 explicit ProfileCompilationInfo(bool for_boot_image); 293 explicit ProfileCompilationInfo(ArenaPool* arena_pool); 294 ProfileCompilationInfo(ArenaPool* arena_pool, bool for_boot_image); 296 ~ProfileCompilationInfo(); 471 bool MergeWith(const ProfileCompilationInfo& info, bool merge_classes = true); 597 bool SameVersion(const ProfileCompilationInfo& other) const; 600 bool Equals(const ProfileCompilationInfo& other); [all …]
|
/art/profman/ |
D | profile_assistant_test.cc | 70 ProfileCompilationInfo* info, in SetupProfile() 101 ProfileCompilationInfo* info) { in SetupBasicProfile() 156 void CheckProfileInfo(ScratchFile& file, const ProfileCompilationInfo& info) { in CheckProfileInfo() 157 ProfileCompilationInfo file_info; in CheckProfileInfo() 344 const ProfileCompilationInfo& info, in AssertInlineCaches() 348 ProfileCompilationInfo::MethodHotness hotness = in AssertInlineCaches() 351 const ProfileCompilationInfo::InlineCacheMap* inline_caches = hotness.GetInlineCacheMap(); in AssertInlineCaches() 362 const ProfileCompilationInfo& info, in AssertInlineCaches() 366 ProfileCompilationInfo::MethodHotness hotness = in AssertInlineCaches() 369 const ProfileCompilationInfo::InlineCacheMap* inline_caches = hotness.GetInlineCacheMap(); in AssertInlineCaches() [all …]
|
D | profile_assistant.h | 104 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn 105 = ProfileCompilationInfo::ProfileFilterFnAcceptAll, 111 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn 112 = ProfileCompilationInfo::ProfileFilterFnAcceptAll, 119 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn,
|
D | profile_assistant.cc | 33 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn, in ProcessProfilesInternal() 35 ProfileCompilationInfo info(options.IsBootImageMerge()); in ProcessProfilesInternal() 54 ProfileCompilationInfo cur_info(options.IsBootImageMerge()); in ProcessProfilesInternal() 64 ProfileCompilationInfo wrong_info(!options.IsBootImageMerge()); in ProcessProfilesInternal() 161 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn, in ProcessProfiles() 192 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn, in ProcessProfiles()
|
D | profman.cc | 69 using ProfileSampleAnnotation = ProfileCompilationInfo::ProfileSampleAnnotation; 535 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn = in ProcessProfiles() 542 … std::string base_key = ProfileCompilationInfo::GetBaseKeyFromAugmentedKey(profile_key); in ProcessProfiles() 572 profile_filter_keys->emplace(ProfileCompilationInfo::GetProfileDexFileBaseKey( in GetProfileFilterKeyFromApks() 681 std::unique_ptr<const ProfileCompilationInfo> LoadProfile(const std::string& filename, in LoadProfile() 696 std::unique_ptr<ProfileCompilationInfo> info(new ProfileCompilationInfo(for_boot_image)); in LoadProfile() 710 std::unique_ptr<const ProfileCompilationInfo> info = in DumpOneProfile() 808 std::string GetInlineCacheLine(const ProfileCompilationInfo& profile_info, in GetInlineCacheLine() 812 ProfileCompilationInfo::MethodHotness hotness = in GetInlineCacheLine() 818 const ProfileCompilationInfo::InlineCacheMap* inline_caches = hotness.GetInlineCacheMap(); in GetInlineCacheLine() [all …]
|
D | boot_image_profile.h | 30 class ProfileCompilationInfo; variable
|
D | boot_image_profile.cc | 33 using Hotness = ProfileCompilationInfo::MethodHotness; 213 ProfileCompilationInfo profile(/*for_boot_image=*/ true); in GenerateBootImageProfile()
|
/art/runtime/jit/ |
D | profile_saver_test.cc | 27 using Hotness = ProfileCompilationInfo::MethodHotness; 54 ProfileCompilationInfo::ProfileSampleAnnotation GetProfileSampleAnnotation() { in GetProfileSampleAnnotation() 76 ASSERT_EQ(ProfileCompilationInfo::ProfileSampleAnnotation::kNone, in TEST_F() 81 ProfileCompilationInfo::ProfileSampleAnnotation expected("unknown"); in TEST_F() 87 ProfileCompilationInfo::ProfileSampleAnnotation expected("test.package"); in TEST_F()
|
D | profiling_info_test.cc | 40 using Hotness = ProfileCompilationInfo::MethodHotness; 75 ProfileCompilationInfo info; in SaveProfilingInfo() 89 ProfileCompilationInfo file_profile; in SaveProfilingInfo() 108 ProfileCompilationInfo info; in SaveProfilingInfoWithFakeInlineCaches() 149 ProfileCompilationInfo::ProfileSampleAnnotation::kNone, in SaveProfilingInfoWithFakeInlineCaches() 158 ProfileCompilationInfo::InlineCacheMap* CreateInlineCacheMap() { in CreateInlineCacheMap() 159 used_inline_caches.emplace_back(new ProfileCompilationInfo::InlineCacheMap( in CreateInlineCacheMap() 174 std::vector<std::unique_ptr<ProfileCompilationInfo::InlineCacheMap>> used_inline_caches; 196 ProfileCompilationInfo info1; in TEST_F() 216 ProfileCompilationInfo info2; in TEST_F() [all …]
|
D | profile_saver.cc | 48 using Hotness = ProfileCompilationInfo::MethodHotness; 53 static_assert(ProfileCompilationInfo::kIndividualInlineCacheSize == 334 const ProfileCompilationInfo::ProfileSampleAnnotation& annotation) in GetClassesAndMethodsHelper() 358 void UpdateProfile(const std::set<std::string>& locations, ProfileCompilationInfo* profile_info); 420 const ProfileCompilationInfo::ProfileSampleAnnotation annotation_; 590 ProfileCompilationInfo* profile_info) { in UpdateProfile() 606 return enum_cast<ProfileCompilationInfo::MethodHotness::Flag>(base_flags | Hotness::kFlagHot); in UpdateProfile() 609 return enum_cast<ProfileCompilationInfo::MethodHotness::Flag>(base_flags); in UpdateProfile() 611 return enum_cast<ProfileCompilationInfo::MethodHotness::Flag>(0u); in UpdateProfile() 630 ProfileCompilationInfo::ProfileIndexType profile_index = in UpdateProfile() [all …]
|
D | profile_saver.h | 113 ProfileCompilationInfo::ProfileSampleAnnotation GetProfileSampleAnnotation(); 119 ProfileCompilationInfo::MethodHotness::Flag AnnotateSampleFlags(uint32_t flags); 155 SafeMap<std::string, ProfileCompilationInfo*> profile_cache_ GUARDED_BY(Locks::profiler_lock_);
|
/art/dex2oat/ |
D | common_compiler_driver_test.h | 32 class ProfileCompilationInfo; variable 62 virtual ProfileCompilationInfo* GetProfileCompilationInfo();
|
D | common_compiler_driver_test.cc | 137 ProfileCompilationInfo* CommonCompilerDriverTest::GetProfileCompilationInfo() { in GetProfileCompilationInfo()
|
/art/dex2oat/driver/ |
D | compiler_driver_test.cc | 198 ProfileCompilationInfo* GetProfileCompilationInfo() override { in GetProfileCompilationInfo() 202 ProfileCompilationInfo info; in GetProfileCompilationInfo() 205 ProfileCompilationInfo::MethodHotness::kFlagHot); in GetProfileCompilationInfo() 207 ProfileCompilationInfo::MethodHotness::kFlagHot); in GetProfileCompilationInfo() 260 ProfileCompilationInfo profile_info_;
|
D | compiler_driver.cc | 418 ProfileCompilationInfo::ProfileIndexType profile_index, in ShouldCompileBasedOnProfile() 420 if (profile_index == ProfileCompilationInfo::MaxProfileIndex()) { in ShouldCompileBasedOnProfile() 428 ProfileCompilationInfo::MaxProfileIndex()); in ShouldCompileBasedOnProfile() 432 const ProfileCompilationInfo* profile_compilation_info = in ShouldCompileBasedOnProfile() 465 ProfileCompilationInfo::ProfileIndexType profile_index) { in CompileMethodQuick() 595 const ProfileCompilationInfo* profile_compilation_info = in ResolveConstStrings() 612 ProfileCompilationInfo::ProfileIndexType profile_index = in ResolveConstStrings() 613 ProfileCompilationInfo::MaxProfileIndex(); in ResolveConstStrings() 616 if (profile_index == ProfileCompilationInfo::MaxProfileIndex()) { in ResolveConstStrings() 633 DCHECK_NE(profile_index, ProfileCompilationInfo::MaxProfileIndex()); in ResolveConstStrings() [all …]
|
D | compiler_driver.h | 73 class ProfileCompilationInfo; variable
|
/art/compiler/driver/ |
D | compiler_options.h | 52 class ProfileCompilationInfo; variable 242 const ProfileCompilationInfo* GetProfileCompilationInfo() const { in GetProfileCompilationInfo() 426 const ProfileCompilationInfo* profile_compilation_info_;
|
/art/dex2oat/linker/ |
D | oat_writer_test.cc | 131 ProfileCompilationInfo* profile_compilation_info) { in WriteElf() 153 ProfileCompilationInfo* profile_compilation_info = nullptr) { in WriteElf() 626 std::unique_ptr<ProfileCompilationInfo> in TestDexFileInput() 627 profile_compilation_info(use_profile ? new ProfileCompilationInfo() : nullptr); in TestDexFileInput() 663 std::unique_ptr<ProfileCompilationInfo> in TestDexFileInput() 664 profile_compilation_info(use_profile ? new ProfileCompilationInfo() : nullptr); in TestDexFileInput() 873 std::unique_ptr<ProfileCompilationInfo> profile_compilation_info(new ProfileCompilationInfo()); in TestZipFileInputWithEmptyDex()
|
D | oat_writer.h | 47 class ProfileCompilationInfo; variable 120 ProfileCompilationInfo* info); 590 ProfileCompilationInfo* profile_compilation_info_;
|
/art/test/common/ |
D | runtime_state.cc | 524 ProfileCompilationInfo info(/*for_boot_image=*/true); in Java_Main_isForBootImage() 529 static ProfileCompilationInfo::MethodHotness GetMethodHotnessFromProfile(JNIEnv* env, in GetMethodHotnessFromProfile() 541 ProfileCompilationInfo info(Runtime::Current()->GetArenaPool(), for_boot_image); in GetMethodHotnessFromProfile() 544 return ProfileCompilationInfo::MethodHotness(); in GetMethodHotnessFromProfile() 563 ProfileCompilationInfo::MethodHotness hotness = in Java_Main_hasInlineCacheInProfile()
|
/art/runtime/ |
D | common_runtime_test.cc | 583 ProfileCompilationInfo profile(for_boot_image); in GenerateProfile() 587 uint32_t flags = ProfileCompilationInfo::MethodHotness::kFlagHot | in GenerateProfile() 588 ProfileCompilationInfo::MethodHotness::kFlagStartup; in GenerateProfile() 591 static_cast<ProfileCompilationInfo::MethodHotness::Flag>(flags))); in GenerateProfile()
|
D | dexopt_test.cc | 126 ProfileCompilationInfo info; in GenerateOatForTest()
|