Home
last modified time | relevance | path

Searched refs:ProfileCompilationInfo (Results 1 – 25 of 37) sorted by relevance

12

/art/libprofile/profile/
Dprofile_compilation_info_test.cc61 ProfileCompilationInfo::MethodHotness GetMethod( in GetMethod()
62 const ProfileCompilationInfo& info, in GetMethod()
109 while (cache.classes.size() < ProfileCompilationInfo::kIndividualInlineCacheSize) { in MakeMegamorphic()
131 ProfileCompilationInfo saved_info; in TestProfileLoadFromZip()
155 ProfileCompilationInfo loaded_info; in TestProfileLoadFromZip()
166 bool IsEmpty(const ProfileCompilationInfo& info) { in IsEmpty()
171 ProfileCompilationInfo boot_profile(/*for_boot_image=*/ true); in SizeStressTest()
172 ProfileCompilationInfo reg_profile(/*for_boot_image=*/ false); in SizeStressTest()
212 ProfileCompilationInfo loaded_boot(/*for_boot_image=*/ true); in SizeStressTest()
213 ProfileCompilationInfo loaded_reg; in SizeStressTest()
[all …]
Dprofile_compilation_info.cc57 const uint8_t ProfileCompilationInfo::kProfileMagic[] = { 'p', 'r', 'o', '\0' };
59 const uint8_t ProfileCompilationInfo::kProfileVersion[] = { '0', '1', '5', '\0' };
60 const uint8_t ProfileCompilationInfo::kProfileVersionForBootImage[] = { '0', '1', '6', '\0' };
62 static_assert(sizeof(ProfileCompilationInfo::kProfileVersion) == 4,
64 static_assert(sizeof(ProfileCompilationInfo::kProfileVersionForBootImage) == 4,
69 const char ProfileCompilationInfo::kDexMetadataProfileEntry[] = "primary.prof";
74 const ProfileCompilationInfo::ProfileSampleAnnotation
75 ProfileCompilationInfo::ProfileSampleAnnotation::kNone =
76 ProfileCompilationInfo::ProfileSampleAnnotation("");
102 static_assert(sizeof(ProfileCompilationInfo::kIndividualInlineCacheSize) == sizeof(uint8_t),
[all …]
Dprofile_test_helper.h32 using Hotness = ProfileCompilationInfo::MethodHotness;
34 using ProfileSampleAnnotation = ProfileCompilationInfo::ProfileSampleAnnotation;
35 using ProfileIndexType = ProfileCompilationInfo::ProfileIndexType;
38 ProfileCompilationInfo* info,
46 ProfileCompilationInfo* info,
56 ProfileCompilationInfo* info,
65 ProfileCompilationInfo* info,
75 static bool AddClass(ProfileCompilationInfo* info,
82 static bool ProfileIndexMatchesDexFile(const ProfileCompilationInfo& info, in ProfileIndexMatchesDexFile()
93 const ProfileCompilationInfo::MethodHotness& actual_hotness, in EqualInlineCaches()
[all …]
Dprofile_compilation_info.h87 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();
466 bool MergeWith(const ProfileCompilationInfo& info, bool merge_classes = true);
553 bool SameVersion(const ProfileCompilationInfo& other) const;
556 bool Equals(const ProfileCompilationInfo& other);
[all …]
/art/profman/
Dprofile_assistant.h107 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn
108 = ProfileCompilationInfo::ProfileFilterFnAcceptAll,
114 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn
115 = ProfileCompilationInfo::ProfileFilterFnAcceptAll,
122 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn,
Dprofile_assistant_test.cc68 ProfileCompilationInfo* info, in SetupProfile()
99 ProfileCompilationInfo* info) { in SetupBasicProfile()
154 void CheckProfileInfo(ScratchFile& file, const ProfileCompilationInfo& info) { in CheckProfileInfo()
155 ProfileCompilationInfo file_info; in CheckProfileInfo()
342 const ProfileCompilationInfo& info, in AssertInlineCaches()
346 ProfileCompilationInfo::MethodHotness hotness = in AssertInlineCaches()
349 const ProfileCompilationInfo::InlineCacheMap* inline_caches = hotness.GetInlineCacheMap(); in AssertInlineCaches()
360 const ProfileCompilationInfo& info, in AssertInlineCaches()
364 ProfileCompilationInfo::MethodHotness hotness = in AssertInlineCaches()
367 const ProfileCompilationInfo::InlineCacheMap* inline_caches = hotness.GetInlineCacheMap(); in AssertInlineCaches()
[all …]
Dprofile_assistant.cc33 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn, in ProcessProfilesInternal()
37 ProfileCompilationInfo info(options.IsBootImageMerge()); in ProcessProfilesInternal()
56 ProfileCompilationInfo cur_info(options.IsBootImageMerge()); in ProcessProfilesInternal()
66 ProfileCompilationInfo wrong_info(!options.IsBootImageMerge()); in ProcessProfilesInternal()
150 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn, in ProcessProfiles()
181 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn, in ProcessProfiles()
Dprofman.cc70 using ProfileSampleAnnotation = ProfileCompilationInfo::ProfileSampleAnnotation;
526 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn = in ProcessProfiles()
533 … std::string base_key = ProfileCompilationInfo::GetBaseKeyFromAugmentedKey(profile_key); in ProcessProfiles()
563 profile_filter_keys->emplace(ProfileCompilationInfo::GetProfileDexFileBaseKey( in GetProfileFilterKeyFromApks()
667 std::unique_ptr<const ProfileCompilationInfo> LoadProfile(const std::string& filename, in LoadProfile()
682 std::unique_ptr<ProfileCompilationInfo> info(new ProfileCompilationInfo(for_boot_image)); in LoadProfile()
696 std::unique_ptr<const ProfileCompilationInfo> info = in DumpOneProfile()
794 std::string GetInlineCacheLine(const ProfileCompilationInfo& profile_info, in GetInlineCacheLine()
798 ProfileCompilationInfo::MethodHotness hotness = in GetInlineCacheLine()
804 const ProfileCompilationInfo::InlineCacheMap* inline_caches = hotness.GetInlineCacheMap(); in GetInlineCacheLine()
[all …]
Dboot_image_profile.h30 class ProfileCompilationInfo; variable
Dboot_image_profile.cc33 using Hotness = ProfileCompilationInfo::MethodHotness;
213 ProfileCompilationInfo profile(/*for_boot_image=*/ true); in GenerateBootImageProfile()
/art/runtime/jit/
Dprofile_saver_test.cc27 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()
Dprofiling_info_test.cc38 using Hotness = ProfileCompilationInfo::MethodHotness;
73 ProfileCompilationInfo info; in SaveProfilingInfo()
86 ProfileCompilationInfo file_profile; in SaveProfilingInfo()
105 ProfileCompilationInfo info; in SaveProfilingInfoWithFakeInlineCaches()
152 ProfileCompilationInfo::InlineCacheMap* CreateInlineCacheMap() { in CreateInlineCacheMap()
153 used_inline_caches.emplace_back(new ProfileCompilationInfo::InlineCacheMap( in CreateInlineCacheMap()
168 std::vector<std::unique_ptr<ProfileCompilationInfo::InlineCacheMap>> used_inline_caches;
190 ProfileCompilationInfo info1; in TEST_F()
210 ProfileCompilationInfo info2; in TEST_F()
250 ProfileCompilationInfo info; in TEST_F()
[all …]
Dprofile_saver.cc48 using Hotness = ProfileCompilationInfo::MethodHotness;
53 static_assert(ProfileCompilationInfo::kIndividualInlineCacheSize ==
335 const ProfileCompilationInfo::ProfileSampleAnnotation& annotation) in GetClassesAndMethodsHelper()
360 void UpdateProfile(const std::set<std::string>& locations, ProfileCompilationInfo* profile_info);
456 const ProfileCompilationInfo::ProfileSampleAnnotation annotation_;
626 ProfileCompilationInfo* profile_info) { in UpdateProfile()
643 return enum_cast<ProfileCompilationInfo::MethodHotness::Flag>(base_flags | Hotness::kFlagHot); in UpdateProfile()
646 return enum_cast<ProfileCompilationInfo::MethodHotness::Flag>(base_flags); in UpdateProfile()
648 return enum_cast<ProfileCompilationInfo::MethodHotness::Flag>(0u); in UpdateProfile()
667 ProfileCompilationInfo::ProfileIndexType profile_index = in UpdateProfile()
[all …]
Dprofile_saver.h113 ProfileCompilationInfo::ProfileSampleAnnotation GetProfileSampleAnnotation();
119 ProfileCompilationInfo::MethodHotness::Flag AnnotateSampleFlags(uint32_t flags);
155 SafeMap<std::string, ProfileCompilationInfo*> profile_cache_ GUARDED_BY(Locks::profiler_lock_);
/art/dexlayout/
Ddex_visualize.h31 class ProfileCompilationInfo; variable
39 ProfileCompilationInfo* profile_info);
Ddexlayout.h41 class ProfileCompilationInfo; variable
105 ProfileCompilationInfo* info, in DexLayout()
189 ProfileCompilationInfo* info_;
Ddexlayout_main.cc191 std::unique_ptr<ProfileCompilationInfo> profile_info; in DexlayoutDriver()
203 profile_info.reset(new ProfileCompilationInfo()); in DexlayoutDriver()
Ddexlayout_test.cc344 ProfileCompilationInfo pfi; in CreateProfile()
350 flags |= ProfileCompilationInfo::MethodHotness::kFlagHot; in CreateProfile()
353 flags |= ProfileCompilationInfo::MethodHotness::kFlagStartup; in CreateProfile()
357 static_cast<ProfileCompilationInfo::MethodHotness::Flag>(flags)); in CreateProfile()
/art/test/595-profile-saving/
Dprofile-saving.cc57 ProfileCompilationInfo info(/*for_boot_image=*/ true); in Java_Main_isForBootImage()
74 ProfileCompilationInfo info(Runtime::Current()->GetArenaPool(), for_boot_image); in Java_Main_presentInProfile()
79 const ProfileCompilationInfo::MethodHotness hotness = info.GetMethodHotness(ref); in Java_Main_presentInProfile()
/art/dex2oat/
Dcommon_compiler_driver_test.h32 class ProfileCompilationInfo; variable
61 virtual ProfileCompilationInfo* GetProfileCompilationInfo();
Dcommon_compiler_driver_test.cc136 ProfileCompilationInfo* CommonCompilerDriverTest::GetProfileCompilationInfo() { in GetProfileCompilationInfo()
/art/dex2oat/driver/
Dcompiler_driver_test.cc198 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_;
/art/compiler/driver/
Dcompiler_options.h49 class ProfileCompilationInfo; variable
248 const ProfileCompilationInfo* GetProfileCompilationInfo() const { in GetProfileCompilationInfo()
433 const ProfileCompilationInfo* profile_compilation_info_;
/art/dex2oat/linker/
Doat_writer_test.cc133 ProfileCompilationInfo* profile_compilation_info) { in WriteElf()
155 ProfileCompilationInfo* profile_compilation_info = nullptr) { in WriteElf()
629 std::unique_ptr<ProfileCompilationInfo> in TestDexFileInput()
630 profile_compilation_info(use_profile ? new ProfileCompilationInfo() : nullptr); in TestDexFileInput()
666 std::unique_ptr<ProfileCompilationInfo> in TestDexFileInput()
667 profile_compilation_info(use_profile ? new ProfileCompilationInfo() : nullptr); in TestDexFileInput()
876 std::unique_ptr<ProfileCompilationInfo> profile_compilation_info(new ProfileCompilationInfo()); in TestZipFileInputWithEmptyDex()
Doat_writer.h48 class ProfileCompilationInfo; variable
119 ProfileCompilationInfo* info,
554 ProfileCompilationInfo* profile_compilation_info_;

12