Lines Matching refs:profile_key
633 std::string_view profile_key) { in GetBaseKeyViewFromAugmentedKey() argument
634 size_t pos = profile_key.rfind(kSampleMetadataSeparator); in GetBaseKeyViewFromAugmentedKey()
635 return (pos == std::string::npos) ? profile_key : profile_key.substr(0, pos); in GetBaseKeyViewFromAugmentedKey()
639 const std::string& profile_key) { in GetBaseKeyFromAugmentedKey() argument
641 return std::string(GetBaseKeyViewFromAugmentedKey(profile_key)); in GetBaseKeyFromAugmentedKey()
936 if (dex_data->profile_key.size() > kMaxDexFileKeyLength) { in Save()
943 sizeof(uint16_t) + dex_data->profile_key.size(); in Save()
1003 buffer.WriteUintAndAdvance(dchecked_integral_cast<uint16_t>(dex_data->profile_key.size())); in Save()
1004 buffer.WriteAndAdvance(dex_data->profile_key.c_str(), dex_data->profile_key.size()); in Save()
1104 const std::string& profile_key, in GetOrAddDexFileData() argument
1109 auto profile_index_it = profile_key_map_.lower_bound(profile_key); in GetOrAddDexFileData()
1110 if (profile_index_it == profile_key_map_.end() || profile_index_it->first != profile_key) { in GetOrAddDexFileData()
1123 profile_key, in GetOrAddDexFileData()
1130 std::string_view new_key(dex_file_data->profile_key); in GetOrAddDexFileData()
1142 LOG(WARNING) << "Checksum mismatch for dex " << profile_key; in GetOrAddDexFileData()
1148 DCHECK_EQ(profile_key, result->profile_key); in GetOrAddDexFileData()
1153 LOG(ERROR) << "num_type_ids or num_method_ids mismatch for dex " << profile_key in GetOrAddDexFileData()
1163 const std::string& profile_key, in FindDexData() argument
1166 const auto profile_index_it = profile_key_map_.find(profile_key); in FindDexData()
1176 DCHECK_EQ(profile_key, result->profile_key); in FindDexData()
1185 std::string_view profile_key = GetProfileDexFileBaseKeyView(dex_file->GetLocation()); in FindDexDataUsingAnnotations() local
1187 if (profile_key == GetBaseKeyViewFromAugmentedKey(dex_data->profile_key)) { in FindDexDataUsingAnnotations()
1195 std::string profile_key = GetProfileDexFileAugmentedKey(dex_file->GetLocation(), annotation); in FindDexDataUsingAnnotations() local
1196 return FindDexData(profile_key, dex_file->GetLocationChecksum()); in FindDexDataUsingAnnotations()
1205 std::string_view profile_key = GetProfileDexFileBaseKeyView(dex_file->GetLocation()); in FindAllDexData() local
1207 if (profile_key == GetBaseKeyViewFromAugmentedKey(dex_data->profile_key)) { in FindAllDexData()
1299 const auto it = key_to_dex_file.find(GetBaseKeyViewFromAugmentedKey(dex_data->profile_key)); in VerifyProfileData()
1525 std::string profile_key(profile_key_view); in ReadDexFilesSection() local
1526 if (!filter_fn(profile_key, checksum)) { in ReadDexFilesSection()
1528 VLOG(compiler) << "Profile: Filtered out " << profile_key << " 0x" << std::hex << checksum; in ReadDexFilesSection()
1532 DexFileData* data = GetOrAddDexFileData(profile_key, checksum, num_type_ids, num_method_ids); in ReadDexFilesSection()
1535 profile_key_map_.find(profile_key) == profile_key_map_.end()) { in ReadDexFilesSection()
1538 *error = "Checksum, NumTypeIds, or NumMethodIds mismatch for " + profile_key; in ReadDexFilesSection()
1823 const DexFileData* dex_data = FindDexData(other_dex_data->profile_key, in MergeWith()
1827 LOG(WARNING) << "Checksum mismatch for dex " << other_dex_data->profile_key; in MergeWith()
1845 const DexFileData* dex_data = GetOrAddDexFileData(other_dex_data->profile_key, in MergeWith()
1878 DCHECK_EQ(dex_data, FindDexData(other_dex_data->profile_key, other_dex_data->checksum)); in MergeWith()
2002 os << dex_data->profile_key; in DumpInfo()
2006 GetBaseKeyFromAugmentedKey(dex_data->profile_key)); in DumpInfo()
2015 if (GetBaseKeyViewFromAugmentedKey(dex_data->profile_key) == current->GetLocation() && in DumpInfo()
2153 std::string profile_key = info.GetProfileDexFileBaseKey(dex_location); in GenerateTestProfile() local
2156 info.GetOrAddDexFileData(profile_key, /*checksum=*/ 0, max_classes, max_methods); in GenerateTestProfile()
2202 const std::string& profile_key = dex_file->GetLocation(); in GenerateTestProfile() local
2209 profile_key, checksum, dex_file->NumTypeIds(), dex_file->NumMethodIds()); in GenerateTestProfile()
2417 std::string dex_data_base_key = GetBaseKeyFromAugmentedKey(dex_data->profile_key); in UpdateProfileKeys()
2425 profile_key_map_.erase(dex_data->profile_key); in UpdateProfileKeys()
2428 dex_data->profile_key = MigrateAnnotationInfo(new_profile_key, dex_data->profile_key); in UpdateProfileKeys()
2429 profile_key_map_.Put(dex_data->profile_key, dex_data->profile_index); in UpdateProfileKeys()
2904 ProfileSampleAnnotation annotation = GetAnnotationFromKey(dex_data->profile_key); in ExtractProfileData()