Lines Matching refs:profile_key

650     std::string_view profile_key) {  in GetBaseKeyViewFromAugmentedKey()  argument
651 size_t pos = profile_key.rfind(kSampleMetadataSeparator); in GetBaseKeyViewFromAugmentedKey()
652 return (pos == std::string::npos) ? profile_key : profile_key.substr(0, pos); in GetBaseKeyViewFromAugmentedKey()
656 const std::string& profile_key) { in GetBaseKeyFromAugmentedKey() argument
658 return std::string(GetBaseKeyViewFromAugmentedKey(profile_key)); in GetBaseKeyFromAugmentedKey()
1024 if (dex_data->profile_key.size() > kMaxDexFileKeyLength) { in Save()
1031 sizeof(uint16_t) + dex_data->profile_key.size(); in Save()
1091 buffer.WriteUintAndAdvance(dchecked_integral_cast<uint16_t>(dex_data->profile_key.size())); in Save()
1092 buffer.WriteAndAdvance(dex_data->profile_key.c_str(), dex_data->profile_key.size()); in Save()
1192 const std::string& profile_key, in GetOrAddDexFileData() argument
1197 auto profile_index_it = profile_key_map_.lower_bound(profile_key); in GetOrAddDexFileData()
1198 if (profile_index_it == profile_key_map_.end() || profile_index_it->first != profile_key) { in GetOrAddDexFileData()
1211 profile_key, in GetOrAddDexFileData()
1218 std::string_view new_key(dex_file_data->profile_key); in GetOrAddDexFileData()
1230 LOG(WARNING) << "Checksum mismatch for dex " << profile_key; in GetOrAddDexFileData()
1236 DCHECK_EQ(profile_key, result->profile_key); in GetOrAddDexFileData()
1241 LOG(ERROR) << "num_type_ids or num_method_ids mismatch for dex " << profile_key in GetOrAddDexFileData()
1251 const std::string& profile_key, in FindDexData() argument
1254 const auto profile_index_it = profile_key_map_.find(profile_key); in FindDexData()
1264 DCHECK_EQ(profile_key, result->profile_key); in FindDexData()
1273 std::string_view profile_key = GetProfileDexFileBaseKeyView(dex_file->GetLocation()); in FindDexDataUsingAnnotations() local
1275 if (profile_key == GetBaseKeyViewFromAugmentedKey(dex_data->profile_key)) { in FindDexDataUsingAnnotations()
1283 std::string profile_key = GetProfileDexFileAugmentedKey(dex_file->GetLocation(), annotation); in FindDexDataUsingAnnotations() local
1284 return FindDexData(profile_key, dex_file->GetLocationChecksum()); in FindDexDataUsingAnnotations()
1293 std::string_view profile_key = GetProfileDexFileBaseKeyView(dex_file->GetLocation()); in FindAllDexData() local
1295 if (profile_key == GetBaseKeyViewFromAugmentedKey(dex_data->profile_key)) { in FindAllDexData()
1418 const auto it = key_to_dex_file.find(GetBaseKeyViewFromAugmentedKey(dex_data->profile_key)); in VerifyProfileData()
1644 std::string profile_key(profile_key_view); in ReadDexFilesSection() local
1645 if (!filter_fn(profile_key, checksum)) { in ReadDexFilesSection()
1647 VLOG(compiler) << "Profile: Filtered out " << profile_key << " 0x" << std::hex << checksum; in ReadDexFilesSection()
1651 DexFileData* data = GetOrAddDexFileData(profile_key, checksum, num_type_ids, num_method_ids); in ReadDexFilesSection()
1654 profile_key_map_.find(profile_key) == profile_key_map_.end()) { in ReadDexFilesSection()
1657 *error = "Checksum, NumTypeIds, or NumMethodIds mismatch for " + profile_key; in ReadDexFilesSection()
1945 const DexFileData* dex_data = FindDexData(other_dex_data->profile_key, in MergeWith()
1949 LOG(WARNING) << "Checksum mismatch for dex " << other_dex_data->profile_key; in MergeWith()
1967 const DexFileData* dex_data = GetOrAddDexFileData(other_dex_data->profile_key, in MergeWith()
2000 DCHECK_EQ(dex_data, FindDexData(other_dex_data->profile_key, other_dex_data->checksum)); in MergeWith()
2124 os << dex_data->profile_key; in DumpInfo()
2128 GetBaseKeyFromAugmentedKey(dex_data->profile_key)); in DumpInfo()
2137 if (GetBaseKeyViewFromAugmentedKey(dex_data->profile_key) == in DumpInfo()
2287 std::string profile_key = info.GetProfileDexFileBaseKey(dex_location); in GenerateTestProfile() local
2290 info.GetOrAddDexFileData(profile_key, /*checksum=*/ 0, max_classes, max_methods); in GenerateTestProfile()
2337 std::string profile_key = info.GetProfileDexFileBaseKey(dex_location); in GenerateTestProfile() local
2344 profile_key, checksum, dex_file->NumTypeIds(), dex_file->NumMethodIds()); in GenerateTestProfile()
2537 std::string old_base_key = GetBaseKeyFromAugmentedKey(dex_data->profile_key); in UpdateProfileKeys()
2570 std::string old_base_key = GetBaseKeyFromAugmentedKey(dex_data->profile_key); in UpdateProfileKeys()
2574 dex_data->profile_key = MigrateAnnotationInfo(new_base_key, dex_data->profile_key); in UpdateProfileKeys()
2575 profile_key_map_.Put(dex_data->profile_key, dex_data->profile_index); in UpdateProfileKeys()
3055 ProfileSampleAnnotation annotation = GetAnnotationFromKey(dex_data->profile_key); in ExtractProfileData()