Home
last modified time | relevance | path

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

12

/art/libprofile/profile/
Dprofile_compilation_info.cc55 const uint8_t ProfileCompilationInfo::kProfileMagic[] = { 'p', 'r', 'o', '\0' };
59 const uint8_t ProfileCompilationInfo::kProfileVersion[] = { '0', '1', '0', '\0' };
60 const uint8_t ProfileCompilationInfo::kProfileVersionForBootImage[] = { '0', '1', '2', '\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("");
90 static_assert(sizeof(ProfileCompilationInfo::kIndividualInlineCacheSize) == sizeof(uint8_t),
[all …]
Dprofile_compilation_info_test.cc34 using Hotness = ProfileCompilationInfo::MethodHotness;
36 using ProfileSampleAnnotation = ProfileCompilationInfo::ProfileSampleAnnotation;
37 using ProfileIndexType = ProfileCompilationInfo::ProfileIndexType;
38 using ProfileIndexTypeRegular = ProfileCompilationInfo::ProfileIndexTypeRegular;
72 bool AddMethod(ProfileCompilationInfo* info, in AddMethod()
82 bool AddMethod(ProfileCompilationInfo* info, in AddMethod()
93 bool AddClass(ProfileCompilationInfo* info, in AddClass()
105 std::unique_ptr<ProfileCompilationInfo::OfflineProfileMethodInfo> GetMethod( in GetMethod()
106 const ProfileCompilationInfo& info, in GetMethod()
114 ProfileCompilationInfo::InlineCacheMap* CreateInlineCacheMap() { in CreateInlineCacheMap()
[all …]
Dprofile_compilation_info.h74 class ProfileCompilationInfo {
278 friend class ProfileCompilationInfo; variable
326 ProfileCompilationInfo();
327 explicit ProfileCompilationInfo(bool for_boot_image);
328 explicit ProfileCompilationInfo(ArenaPool* arena_pool);
329 ProfileCompilationInfo(ArenaPool* arena_pool, bool for_boot_image);
331 ~ProfileCompilationInfo();
425 bool MergeWith(const ProfileCompilationInfo& info, bool merge_classes = true);
494 bool SameVersion(const ProfileCompilationInfo& other) const;
497 bool Equals(const ProfileCompilationInfo& other);
[all …]
/art/profman/
Dprofile_assistant.h85 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn
86 = ProfileCompilationInfo::ProfileFilterFnAcceptAll,
92 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn
93 = ProfileCompilationInfo::ProfileFilterFnAcceptAll,
100 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn,
Dprofile_assistant_test.cc37 using Hotness = ProfileCompilationInfo::MethodHotness;
58 bool AddMethod(ProfileCompilationInfo* info, in AddMethod()
67 bool AddMethod(ProfileCompilationInfo* info, in AddMethod()
71 const ProfileCompilationInfo::ProfileSampleAnnotation& annotation in AddMethod()
72 = ProfileCompilationInfo::ProfileSampleAnnotation::kNone) { in AddMethod()
78 bool AddClass(ProfileCompilationInfo* info, in AddClass()
90 ProfileCompilationInfo* info, in SetupProfile()
121 ProfileCompilationInfo* info) { in SetupBasicProfile()
177 void CheckProfileInfo(ScratchFile& file, const ProfileCompilationInfo& info) { in CheckProfileInfo()
178 ProfileCompilationInfo file_info; in CheckProfileInfo()
[all …]
Dprofile_assistant.cc35 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn, in ProcessProfilesInternal()
39 ProfileCompilationInfo info(options.IsBootImageMerge()); in ProcessProfilesInternal()
58 ProfileCompilationInfo cur_info; in ProcessProfilesInternal()
159 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn, in ProcessProfiles()
190 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn, in ProcessProfiles()
Dprofman.cc61 using ProfileSampleAnnotation = ProfileCompilationInfo::ProfileSampleAnnotation;
471 const ProfileCompilationInfo::ProfileLoadFilterFn& filter_fn = in ProcessProfiles()
478 … std::string base_key = ProfileCompilationInfo::GetBaseKeyFromAugmentedKey(profile_key); in ProcessProfiles()
508 profile_filter_keys->emplace(ProfileCompilationInfo::GetProfileDexFileBaseKey( in GetProfileFilterKeyFromApks()
612 std::unique_ptr<const ProfileCompilationInfo> LoadProfile(const std::string& filename, int fd) { in LoadProfile()
625 std::unique_ptr<ProfileCompilationInfo> info(new ProfileCompilationInfo); in LoadProfile()
638 std::unique_ptr<const ProfileCompilationInfo> info(LoadProfile(filename, fd)); in DumpOneProfile()
731 ProfileCompilationInfo profile_info; in GetClassNamesAndMethods()
1039 /*out*/ProfileCompilationInfo* profile) { in ProcessLine()
1095 flags |= ProfileCompilationInfo::MethodHotness::kFlagHot; in ProcessLine()
[all …]
Dboot_image_profile.h30 class ProfileCompilationInfo; variable
Dboot_image_profile.cc33 using Hotness = ProfileCompilationInfo::MethodHotness;
213 ProfileCompilationInfo profile; in GenerateBootImageProfile()
/art/runtime/jit/
Dprofiling_info_test.cc37 using Hotness = ProfileCompilationInfo::MethodHotness;
72 ProfileCompilationInfo info; in SaveProfilingInfo()
85 ProfileCompilationInfo file_profile; in SaveProfilingInfo()
104 ProfileCompilationInfo info; in SaveProfilingInfoWithFakeInlineCaches()
151 ProfileCompilationInfo::InlineCacheMap* CreateInlineCacheMap() { in CreateInlineCacheMap()
152 used_inline_caches.emplace_back(new ProfileCompilationInfo::InlineCacheMap( in CreateInlineCacheMap()
157 ProfileCompilationInfo::OfflineProfileMethodInfo ConvertProfileMethodInfo( in ConvertProfileMethodInfo()
159 ProfileCompilationInfo::InlineCacheMap* ic_map = CreateInlineCacheMap(); in ConvertProfileMethodInfo()
160 ProfileCompilationInfo::OfflineProfileMethodInfo offline_pmi(ic_map); in ConvertProfileMethodInfo()
163 ProfileCompilationInfo::DexPcData& dex_pc_data = in ConvertProfileMethodInfo()
[all …]
Dprofile_saver_test.cc27 using Hotness = ProfileCompilationInfo::MethodHotness;
58 ProfileCompilationInfo::ProfileSampleAnnotation GetProfileSampleAnnotation() { in GetProfileSampleAnnotation()
80 ASSERT_EQ(ProfileCompilationInfo::ProfileSampleAnnotation::kNone, in TEST_F()
85 ProfileCompilationInfo::ProfileSampleAnnotation expected("unknown"); in TEST_F()
91 ProfileCompilationInfo::ProfileSampleAnnotation expected("test.package"); in TEST_F()
Dprofile_saver.h107 ProfileCompilationInfo::ProfileSampleAnnotation GetProfileSampleAnnotation();
110 ProfileCompilationInfo::MethodHotness::Flag AnnotateSampleFlags(uint32_t flags);
139 SafeMap<std::string, ProfileCompilationInfo*> profile_cache_;
Dprofile_saver.cc48 using Hotness = ProfileCompilationInfo::MethodHotness;
53 static_assert(ProfileCompilationInfo::kIndividualInlineCacheSize ==
448 new ProfileCompilationInfo( in FetchAndCacheResolvedClassesAndMethods()
451 ProfileCompilationInfo* cached_info = info_it->second; in FetchAndCacheResolvedClassesAndMethods()
556 ProfileCompilationInfo info(Runtime::Current()->GetArenaPool()); in ProcessProfilingInfo()
629 ProfileCompilationInfo *cached_info = profile_cache_it->second; in ProcessProfilingInfo()
734 code_paths_keys.insert(ProfileCompilationInfo::GetProfileDexFileBaseKey(location)); in Start()
739 const std::string key = ProfileCompilationInfo::GetProfileDexFileBaseKey(location); in Start()
931 ProfileCompilationInfo info(Runtime::Current()->GetArenaPool()); in HasSeenMethod()
935 const ProfileCompilationInfo::MethodHotness hotness = info.GetMethodHotness(ref); in HasSeenMethod()
[all …]
/art/dexlayout/
Ddex_visualize.h31 class ProfileCompilationInfo; variable
39 ProfileCompilationInfo* profile_info);
Ddexlayout.h41 class ProfileCompilationInfo; variable
106 ProfileCompilationInfo* info, in DexLayout()
190 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/dex2oat/
Dcommon_compiler_driver_test.h32 class ProfileCompilationInfo; variable
61 virtual ProfileCompilationInfo* GetProfileCompilationInfo();
Dcommon_compiler_driver_test.cc137 ProfileCompilationInfo* CommonCompilerDriverTest::GetProfileCompilationInfo() { in GetProfileCompilationInfo()
/art/dex2oat/driver/
Dcompiler_driver_test.cc200 ProfileCompilationInfo* GetProfileCompilationInfo() override { in GetProfileCompilationInfo()
204 ProfileCompilationInfo info; in GetProfileCompilationInfo()
207 ProfileCompilationInfo::MethodHotness::kFlagHot); in GetProfileCompilationInfo()
209 ProfileCompilationInfo::MethodHotness::kFlagHot); in GetProfileCompilationInfo()
262 ProfileCompilationInfo profile_info_;
/art/compiler/driver/
Dcompiler_options.h49 class ProfileCompilationInfo; variable
233 const ProfileCompilationInfo* GetProfileCompilationInfo() const { in GetProfileCompilationInfo()
413 const ProfileCompilationInfo* profile_compilation_info_;
/art/test/595-profile-saving/
Dprofile-saving.cc72 ProfileCompilationInfo info; in Java_Main_isForBootImage()
/art/dex2oat/linker/
Doat_writer_test.cc133 ProfileCompilationInfo* profile_compilation_info) { in WriteElf()
155 ProfileCompilationInfo* profile_compilation_info = nullptr) { in WriteElf()
644 std::unique_ptr<ProfileCompilationInfo> in TestDexFileInput()
645 profile_compilation_info(use_profile ? new ProfileCompilationInfo() : nullptr); in TestDexFileInput()
681 std::unique_ptr<ProfileCompilationInfo> in TestDexFileInput()
682 profile_compilation_info(use_profile ? new ProfileCompilationInfo() : nullptr); in TestDexFileInput()
891 std::unique_ptr<ProfileCompilationInfo> profile_compilation_info(new ProfileCompilationInfo()); in TestZipFileInputWithEmptyDex()
Doat_writer.h48 class ProfileCompilationInfo; variable
125 ProfileCompilationInfo* info,
542 ProfileCompilationInfo* profile_compilation_info_;
/art/runtime/
Dcommon_runtime_test.cc606 ProfileCompilationInfo profile; in GenerateProfile()
610 uint32_t flags = ProfileCompilationInfo::MethodHotness::kFlagHot | in GenerateProfile()
611 ProfileCompilationInfo::MethodHotness::kFlagStartup; in GenerateProfile()
614 static_cast<ProfileCompilationInfo::MethodHotness::Flag>(flags))); in GenerateProfile()

12