Home
last modified time | relevance | path

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

12

/art/libprofile/profile/
Dprofile_compilation_info_test.cc67 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 …]
Dprofile_compilation_info.cc70 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 …]
Dprofile_test_helper.h32 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 …]
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();
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/
Dprofile_assistant_test.cc70 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 …]
Dprofile_assistant.h104 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn
105 = ProfileCompilationInfo::ProfileFilterFnAcceptAll,
111 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn
112 = ProfileCompilationInfo::ProfileFilterFnAcceptAll,
119 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn,
Dprofile_assistant.cc33 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()
Dprofman.cc69 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 …]
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.cc40 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 …]
Dprofile_saver.cc48 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 …]
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/dex2oat/
Dcommon_compiler_driver_test.h32 class ProfileCompilationInfo; variable
62 virtual ProfileCompilationInfo* GetProfileCompilationInfo();
Dcommon_compiler_driver_test.cc137 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_;
Dcompiler_driver.cc418 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 …]
Dcompiler_driver.h73 class ProfileCompilationInfo; variable
/art/compiler/driver/
Dcompiler_options.h52 class ProfileCompilationInfo; variable
242 const ProfileCompilationInfo* GetProfileCompilationInfo() const { in GetProfileCompilationInfo()
426 const ProfileCompilationInfo* profile_compilation_info_;
/art/dex2oat/linker/
Doat_writer_test.cc131 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()
Doat_writer.h47 class ProfileCompilationInfo; variable
120 ProfileCompilationInfo* info);
590 ProfileCompilationInfo* profile_compilation_info_;
/art/test/common/
Druntime_state.cc524 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/
Dcommon_runtime_test.cc583 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()
Ddexopt_test.cc126 ProfileCompilationInfo info; in GenerateOatForTest()

12