Lines Matching refs:ProfileCompilationInfo
57 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),
104 static_assert(ProfileCompilationInfo::kIndividualInlineCacheSize < kIsMegamorphicEncoding,
106 static_assert(ProfileCompilationInfo::kIndividualInlineCacheSize < kIsMissingTypesEncoding,
190 enum class ProfileCompilationInfo::ProfileLoadStatus : uint32_t {
200 enum class ProfileCompilationInfo::FileSectionType : uint32_t {
225 class ProfileCompilationInfo::FileSectionInfo {
274 class ProfileCompilationInfo::FileHeader {
324 const uint32_t ProfileCompilationInfo::FileHeader::kMaxFileSectionCount =
327 ProfileCompilationInfo::ProfileLoadStatus
328 ProfileCompilationInfo::FileHeader::InvalidHeaderMessage(/*out*/ std::string* error_msg) const { in InvalidHeaderMessage()
353 class ProfileCompilationInfo::ProfileSource {
405 class ProfileCompilationInfo::SafeBuffer {
548 ProfileCompilationInfo::ProfileCompilationInfo(ArenaPool* custom_arena_pool, bool for_boot_image) in ProfileCompilationInfo() function in art::ProfileCompilationInfo
561 ProfileCompilationInfo::ProfileCompilationInfo(ArenaPool* custom_arena_pool) in ProfileCompilationInfo() function in art::ProfileCompilationInfo
562 : ProfileCompilationInfo(custom_arena_pool, /*for_boot_image=*/ false) { } in ProfileCompilationInfo()
564 ProfileCompilationInfo::ProfileCompilationInfo() in ProfileCompilationInfo() function in art::ProfileCompilationInfo
565 : ProfileCompilationInfo(/*for_boot_image=*/ false) { } in ProfileCompilationInfo()
567 ProfileCompilationInfo::ProfileCompilationInfo(bool for_boot_image) in ProfileCompilationInfo() function in art::ProfileCompilationInfo
568 : ProfileCompilationInfo(&default_arena_pool_, for_boot_image) { } in ProfileCompilationInfo()
570 ProfileCompilationInfo::~ProfileCompilationInfo() { in ~ProfileCompilationInfo()
574 void ProfileCompilationInfo::DexPcData::AddClass(const dex::TypeIndex& type_idx) { in AddClass()
590 if (classes.size() + 1 >= ProfileCompilationInfo::kIndividualInlineCacheSize) { in AddClass()
602 std::string ProfileCompilationInfo::GetProfileDexFileAugmentedKey( in GetProfileDexFileAugmentedKey()
615 std::string_view ProfileCompilationInfo::GetProfileDexFileBaseKeyView( in GetProfileDexFileBaseKeyView()
627 std::string ProfileCompilationInfo::GetProfileDexFileBaseKey(const std::string& dex_location) { in GetProfileDexFileBaseKey()
632 std::string_view ProfileCompilationInfo::GetBaseKeyViewFromAugmentedKey( in GetBaseKeyViewFromAugmentedKey()
638 std::string ProfileCompilationInfo::GetBaseKeyFromAugmentedKey( in GetBaseKeyFromAugmentedKey()
644 std::string ProfileCompilationInfo::MigrateAnnotationInfo( in MigrateAnnotationInfo()
653 ProfileCompilationInfo::ProfileSampleAnnotation ProfileCompilationInfo::GetAnnotationFromKey( in GetAnnotationFromKey()
661 bool ProfileCompilationInfo::AddMethods(const std::vector<ProfileMethodInfo>& methods, in AddMethods()
672 dex::TypeIndex ProfileCompilationInfo::FindOrCreateTypeIndex(const DexFile& dex_file, in FindOrCreateTypeIndex()
685 dex::TypeIndex ProfileCompilationInfo::FindOrCreateTypeIndex(const DexFile& dex_file, in FindOrCreateTypeIndex()
713 bool ProfileCompilationInfo::AddClass(const DexFile& dex_file, in AddClass()
728 bool ProfileCompilationInfo::MergeWith(const std::string& filename) { in MergeWith()
754 bool ProfileCompilationInfo::Load(const std::string& filename, bool clear_if_invalid) { in Load()
803 bool ProfileCompilationInfo::Save(const std::string& filename, uint64_t* bytes_written) { in Save()
916 bool ProfileCompilationInfo::Save(int fd) { in Save()
1103 ProfileCompilationInfo::DexFileData* ProfileCompilationInfo::GetOrAddDexFileData( in GetOrAddDexFileData()
1162 const ProfileCompilationInfo::DexFileData* ProfileCompilationInfo::FindDexData( in FindDexData()
1181 const ProfileCompilationInfo::DexFileData* ProfileCompilationInfo::FindDexDataUsingAnnotations( in FindDexDataUsingAnnotations()
1202 void ProfileCompilationInfo::FindAllDexData( in FindAllDexData()
1204 /*out*/ std::vector<const ProfileCompilationInfo::DexFileData*>* result) const { in FindAllDexData()
1215 ProfileCompilationInfo::ExtraDescriptorIndex ProfileCompilationInfo::AddExtraDescriptor( in AddExtraDescriptor()
1230 bool ProfileCompilationInfo::AddMethod(const ProfileMethodInfo& pmi, in AddMethod()
1278 bool ProfileCompilationInfo::Load( in Load()
1292 bool ProfileCompilationInfo::VerifyProfileData(const std::vector<const DexFile*>& dex_files) { in VerifyProfileData()
1359 ProfileCompilationInfo::ProfileLoadStatus ProfileCompilationInfo::OpenSource( in OpenSource()
1401 bool ProfileCompilationInfo::ProfileSource::Seek(off_t offset) { in Seek()
1417 ProfileCompilationInfo::ProfileLoadStatus ProfileCompilationInfo::ProfileSource::Read( in Read()
1447 bool ProfileCompilationInfo::ProfileSource::HasEmptyContent() const { in HasEmptyContent()
1459 ProfileCompilationInfo::ProfileLoadStatus ProfileCompilationInfo::ReadSectionData( in ReadSectionData()
1484 ProfileCompilationInfo::ProfileLoadStatus ProfileCompilationInfo::ReadDexFilesSection( in ReadDexFilesSection()
1551 ProfileCompilationInfo::ProfileLoadStatus ProfileCompilationInfo::ReadExtraDescriptorsSection( in ReadExtraDescriptorsSection()
1602 ProfileCompilationInfo::ProfileLoadStatus ProfileCompilationInfo::ReadClassesSection( in ReadClassesSection()
1638 ProfileCompilationInfo::ProfileLoadStatus ProfileCompilationInfo::ReadMethodsSection( in ReadMethodsSection()
1675 ProfileCompilationInfo::ProfileLoadStatus ProfileCompilationInfo::LoadInternal( in LoadInternal()
1809 bool ProfileCompilationInfo::MergeWith(const ProfileCompilationInfo& other, in MergeWith()
1939 ProfileCompilationInfo::MethodHotness ProfileCompilationInfo::GetMethodHotness( in GetMethodHotness()
1948 bool ProfileCompilationInfo::ContainsClass(const DexFile& dex_file, in ContainsClass()
1955 uint32_t ProfileCompilationInfo::GetNumberOfMethods() const { in GetNumberOfMethods()
1963 uint32_t ProfileCompilationInfo::GetNumberOfResolvedClasses() const { in GetNumberOfResolvedClasses()
1971 std::string ProfileCompilationInfo::DumpInfo(const std::vector<const DexFile*>& dex_files, in DumpInfo()
2076 bool ProfileCompilationInfo::GetClassesAndMethods( in GetClassesAndMethods()
2106 bool ProfileCompilationInfo::SameVersion(const ProfileCompilationInfo& other) const { in SameVersion()
2110 bool ProfileCompilationInfo::Equals(const ProfileCompilationInfo& other) { in Equals()
2131 bool ProfileCompilationInfo::GenerateTestProfile(int fd, in GenerateTestProfile()
2137 ProfileCompilationInfo info; in GenerateTestProfile()
2184 bool ProfileCompilationInfo::GenerateTestProfile( in GenerateTestProfile()
2190 ProfileCompilationInfo info; in GenerateTestProfile()
2230 bool ProfileCompilationInfo::IsEmpty() const { in IsEmpty()
2238 ProfileCompilationInfo::InlineCacheMap*
2239 ProfileCompilationInfo::DexFileData::FindOrAddHotMethod(uint16_t method_index) { in FindOrAddHotMethod()
2250 bool ProfileCompilationInfo::DexFileData::AddMethod(MethodHotness::Flag flags, size_t index) { in AddMethod()
2260 ProfileCompilationInfo::InlineCacheMap* result = FindOrAddHotMethod(index); in AddMethod()
2267 ALWAYS_INLINE void ProfileCompilationInfo::DexFileData::ForMethodBitmapHotnessFlags(Fn fn) const { in ForMethodBitmapHotnessFlags()
2281 void ProfileCompilationInfo::DexFileData::SetMethodHotness(size_t index, in SetMethodHotness()
2292 ProfileCompilationInfo::MethodHotness ProfileCompilationInfo::DexFileData::GetHotnessInfo( in GetHotnessInfo()
2312 static_assert(ProfileCompilationInfo::MethodHotness::kFlagFirst == 1 << 0);
2313 static_assert(ProfileCompilationInfo::MethodHotness::kFlagHot == 1 << 0);
2314 static_assert(ProfileCompilationInfo::MethodHotness::kFlagStartup == 1 << 1);
2315 static_assert(ProfileCompilationInfo::MethodHotness::kFlagPostStartup == 1 << 2);
2316 static_assert(ProfileCompilationInfo::MethodHotness::kFlagLastRegular == 1 << 2);
2317 static_assert(ProfileCompilationInfo::MethodHotness::kFlag32bit == 1 << 3);
2318 static_assert(ProfileCompilationInfo::MethodHotness::kFlag64bit == 1 << 4);
2319 static_assert(ProfileCompilationInfo::MethodHotness::kFlagSensitiveThread == 1 << 5);
2320 static_assert(ProfileCompilationInfo::MethodHotness::kFlagAmStartup == 1 << 6);
2321 static_assert(ProfileCompilationInfo::MethodHotness::kFlagAmPostStartup == 1 << 7);
2322 static_assert(ProfileCompilationInfo::MethodHotness::kFlagBoot == 1 << 8);
2323 static_assert(ProfileCompilationInfo::MethodHotness::kFlagPostBoot == 1 << 9);
2324 static_assert(ProfileCompilationInfo::MethodHotness::kFlagStartupBin == 1 << 10);
2325 static_assert(ProfileCompilationInfo::MethodHotness::kFlagStartupMaxBin == 1 << 15);
2326 static_assert(ProfileCompilationInfo::MethodHotness::kFlagLastBoot == 1 << 15);
2328 size_t ProfileCompilationInfo::DexFileData::MethodFlagBitmapIndex( in MethodFlagBitmapIndex()
2336 size_t ProfileCompilationInfo::DexFileData::FlagBitmapIndex(MethodHotness::Flag flag) { in FlagBitmapIndex()
2346 uint16_t ProfileCompilationInfo::DexFileData::GetUsedBitmapFlags() const { in GetUsedBitmapFlags()
2357 ProfileCompilationInfo::DexPcData*
2358 ProfileCompilationInfo::FindOrAddDexPc(InlineCacheMap* inline_cache, uint32_t dex_pc) { in FindOrAddDexPc()
2362 HashSet<std::string> ProfileCompilationInfo::GetClassDescriptors( in GetClassDescriptors()
2379 bool ProfileCompilationInfo::IsProfileFile(int fd) { in IsProfileFile()
2409 bool ProfileCompilationInfo::UpdateProfileKeys( in UpdateProfileKeys()
2437 bool ProfileCompilationInfo::ProfileFilterFnAcceptAll( in ProfileFilterFnAcceptAll()
2443 void ProfileCompilationInfo::ClearData() { in ClearData()
2450 void ProfileCompilationInfo::ClearDataAndAdjustVersion(bool for_boot_image) { in ClearDataAndAdjustVersion()
2457 bool ProfileCompilationInfo::IsForBootImage() const { in IsForBootImage()
2461 const uint8_t* ProfileCompilationInfo::GetVersion() const { in GetVersion()
2465 bool ProfileCompilationInfo::DexFileData::ContainsClass(dex::TypeIndex type_index) const { in ContainsClass()
2469 uint32_t ProfileCompilationInfo::DexFileData::ClassesDataSize() const { in ClassesDataSize()
2477 void ProfileCompilationInfo::DexFileData::WriteClasses(SafeBuffer& buffer) const { in WriteClasses()
2486 ProfileCompilationInfo::ProfileLoadStatus ProfileCompilationInfo::DexFileData::ReadClasses( in ReadClasses()
2526 ProfileCompilationInfo::ProfileLoadStatus ProfileCompilationInfo::DexFileData::SkipClasses( in SkipClasses()
2543 uint32_t ProfileCompilationInfo::DexFileData::MethodsDataSize( in MethodsDataSize()
2592 void ProfileCompilationInfo::DexFileData::WriteMethods(SafeBuffer& buffer) const { in WriteMethods()
2668 DCHECK_LT(classes.size(), ProfileCompilationInfo::kIndividualInlineCacheSize); in WriteMethods()
2682 ProfileCompilationInfo::ProfileLoadStatus ProfileCompilationInfo::DexFileData::ReadMethods( in ReadMethods()
2826 ProfileCompilationInfo::ProfileLoadStatus ProfileCompilationInfo::DexFileData::SkipMethods( in SkipMethods()
2842 void ProfileCompilationInfo::DexFileData::WriteClassSet( in WriteClassSet()
2855 size_t ProfileCompilationInfo::GetSizeWarningThresholdBytes() const { in GetSizeWarningThresholdBytes()
2859 size_t ProfileCompilationInfo::GetSizeErrorThresholdBytes() const { in GetSizeErrorThresholdBytes()
2864 ProfileCompilationInfo::DexReferenceDumper dumper) { in operator <<()
2887 std::unique_ptr<FlattenProfileData> ProfileCompilationInfo::ExtractProfileData( in ExtractProfileData()
2955 const std::list<ProfileCompilationInfo::ProfileSampleAnnotation>& other_annotations = in MergeData()
2971 const std::list<ProfileCompilationInfo::ProfileSampleAnnotation>& other_annotations = in MergeData()