/art/tools/ |
D | compile-jar.py | 160 if args.profile_file is None and len(args.profile_line) == 0: 162 if args.profile_file: 163 with open(args.profile_file, "rb") as prof: 167 return ['--profile-file={}'.format(args.profile_file)] 182 if args.profile_file: 183 profman_args.append("--create-profile-from={}".format(args.profile_file))
|
/art/test/generate-boot-image/ |
D | generate-boot-image.cc | 94 std::string profile_file = ""; member 152 args.push_back("--profile-file=" + options.profile_file); in GenerateBootImage() 203 options.profile_file = arg; in Main() 239 if (options.use_profile && options.profile_file.empty()) { in Main() 241 options.profile_file = ART_FORMAT("{}/etc/boot-image.prof", GetArtRoot()); in Main()
|
/art/runtime/ |
D | dexopt_test.cc | 115 ScratchFile profile_file; in GenerateOatForTest() local 130 ASSERT_TRUE(info.Save(profile_file.GetFd())); in GenerateOatForTest() 131 ASSERT_EQ(0, profile_file.GetFile()->Flush()); in GenerateOatForTest() 134 args.push_back("--profile-file=" + profile_file.GetFilename()); in GenerateOatForTest()
|
D | runtime_image.cc | 1012 std::string profile_file = app_info->GetPrimaryApkReferenceProfile(); in LoadClassesFromReferenceProfile() local 1014 if (profile_file.empty()) { in LoadClassesFromReferenceProfile() 1022 LockedFile::Open(profile_file.c_str(), O_RDONLY, /*block=*/false, &error); in LoadClassesFromReferenceProfile() 1025 LOG(DEBUG) << "Couldn't lock the profile file " << profile_file << ": " << error; in LoadClassesFromReferenceProfile()
|
/art/runtime/gc/space/ |
D | image_space_test.cc | 74 ScratchFile profile_file; in TEST_F() local 75 GenerateBootProfile(dex_files, profile_file.GetFile()); in TEST_F() 77 "--profile-file=" + profile_file.GetFilename(), in TEST_F() 102 ScratchFile profile_file; in TEST_F() local 103 GenerateProfile(dex_files, profile_file.GetFile()); in TEST_F() 110 "--profile-file=" + profile_file.GetFilename(), in TEST_F()
|
D | image_space.cc | 1911 std::unique_ptr<File> profile_file(OS::OpenFileForReading(profile_filename.c_str())); in CompileBootclasspathElements() local 1912 if (profile_file == nullptr) { in CompileBootclasspathElements() 1927 if (!info.Load(profile_file->Fd(), /*merge_classes=*/ true, collect_fn)) { in CompileBootclasspathElements()
|
/art/dex2oat/ |
D | dex2oat_image_test.cc | 200 ScratchFile profile_file; in TEST_F() local 202 profile_file.GetFile(), in TEST_F() 207 {"--profile-file=" + profile_file.GetFilename(), in TEST_F() 209 profile_file.Close(); in TEST_F() 220 ScratchFile profile_file; in TEST_F() local 222 profile_file.GetFile(), in TEST_F() 227 {"--profile-file=" + profile_file.GetFilename(), in TEST_F() 229 profile_file.Close(); in TEST_F()
|
D | dex2oat_test.cc | 1651 ScratchFile profile_file; in TEST_F() local 1698 "--profile-file=" + profile_file.GetFilename()}, in TEST_F() 1777 ScratchFile profile_file; in TEST_F() local 1834 ASSERT_TRUE(info.Save(profile_file.GetFd())); in TEST_F() 1844 "--profile-file=" + profile_file.GetFilename()}, in TEST_F()
|
D | dex2oat.cc | 2399 for (const std::unique_ptr<File>& profile_file : profile_files) { in LoadProfile() local 2400 if (!profile_compilation_info_->Load(profile_file->Fd(), in LoadProfile()
|
/art/profman/ |
D | profile_assistant_test.cc | 273 ScratchFile profile_file; in CreateAndDump() local 275 profile_file.GetFilename(), in CreateAndDump() 277 EXPECT_TRUE(DumpClassesAndMethods(profile_file.GetFilename(), output_file_contents, target)); in CreateAndDump() 832 ScratchFile profile_file; in TEST_F() local 834 profile_file.GetFilename(), in TEST_F() 837 ASSERT_TRUE(info.Load(GetFd(profile_file))); in TEST_F() 1138 ScratchFile profile_file; in TEST_F() local 1140 profile_file.GetFilename(), in TEST_F() 1146 profile_file.GetFilename(), &text_two, GetTestDexFileName("ProfileTestMultiDex"))); in TEST_F() 1160 profile_file.GetFilename(), in TEST_F() [all …]
|
D | boot_image_profile.cc | 212 for (const std::string& profile_file : profile_files) { in GenerateBootImageProfile() local 214 if (!profile.Load(profile_file, /*clear_if_invalid=*/ false)) { in GenerateBootImageProfile() 215 LOG(ERROR) << "Profile is not a valid: " << profile_file; in GenerateBootImageProfile()
|
D | profman.cc | 762 for (const std::string& profile_file : profile_files_) { in DumpProfileInfo() local 763 int ret = DumpOneProfile(kOrdinaryProfile, profile_file, File::kInvalidFd, &dex_files, &dump); in DumpProfileInfo() 948 bool GetClassNamesAndMethods(const std::string& profile_file, in GetClassNamesAndMethods() argument 956 int fd = open(profile_file.c_str(), flags); in GetClassNamesAndMethods() 958 PLOG(ERROR) << "Cannot open " << profile_file; in GetClassNamesAndMethods() 990 for (const std::string& profile_file : profile_files_) { in DumpClassesAndMethods() local 991 if (!GetClassNamesAndMethods(profile_file, &dex_files, &class_names)) { in DumpClassesAndMethods()
|
/art/runtime/jit/ |
D | jit.cc | 858 for (const std::string& profile_file : space->GetProfileFiles()) { in Run() local 859 std::string boot_profile = GetBootProfileFile(profile_file); in Run() 867 for (const std::string& profile_file : space->GetProfileFiles()) { in Run() local 868 LOG(INFO) << "JIT Zygote looking at profile " << profile_file; in Run() 871 self, boot_class_path, profile_file, null_handle, /* add_to_queue= */ true); in Run() 1273 const std::string& profile_file, in CompileMethodsFromBootProfile() argument 1276 unix_file::FdFile profile(profile_file, O_RDONLY, true); in CompileMethodsFromBootProfile() 1279 PLOG(WARNING) << "No boot profile: " << profile_file; in CompileMethodsFromBootProfile() 1285 LOG(ERROR) << "Could not load profile file: " << profile_file; in CompileMethodsFromBootProfile() 1315 const std::string& profile_file, in CompileMethodsFromProfile() argument [all …]
|
/art/artd/ |
D | artd.cc | 846 Result<std::unique_ptr<File>> profile_file = OpenFileForReading(profile_path); in mergeProfiles() local 847 if (!profile_file.ok()) { in mergeProfiles() 848 if (profile_file.error().code() == ENOENT) { in mergeProfiles() 853 "Failed to open profile '{}': {}", profile_path, profile_file.error().message())); in mergeProfiles() 855 args.Add("--profile-file-fd=%d", profile_file.value()->Fd()); in mergeProfiles() 856 fd_logger.Add(*profile_file.value()); in mergeProfiles() 857 profile_files.push_back(std::move(profile_file.value())); in mergeProfiles() 1135 std::unique_ptr<File> profile_file = nullptr; in dexopt() local 1137 profile_file = OR_RETURN_NON_FATAL(OpenFileForReading(profile_path.value())); in dexopt() 1138 args.Add("--profile-file-fd=%d", profile_file->Fd()); in dexopt() [all …]
|
D | artd_test.cc | 1340 std::string profile_file = OR_FATAL(BuildProfileOrDmPath(profile_path_.value())); in TEST_F() local 1341 CreateFile(profile_file); in TEST_F() 1351 Contains(Flag("--reference-profile-file-fd=", FdOf(profile_file))), in TEST_F() 1364 std::string profile_file = OR_FATAL(BuildProfileOrDmPath(profile_path_.value())); in TEST_F() local 1365 CreateFile(profile_file); in TEST_F() 1385 std::string profile_file = OR_FATAL(BuildProfileOrDmPath(profile_path_.value())); in TEST_F() local 1386 CreateFile(profile_file); in TEST_F() 1685 std::string profile_file = OR_FATAL(BuildProfileOrDmPath(profile_path_.value())); in TEST_F() local 1686 CreateFile(profile_file); in TEST_F() 1690 EXPECT_FALSE(std::filesystem::exists(profile_file)); in TEST_F() [all …]
|
/art/libprofile/profile/ |
D | profile_compilation_info.cc | 752 ScopedFlock profile_file = in MergeWith() local 755 if (profile_file.get() == nullptr) { in MergeWith() 760 int fd = profile_file->Fd(); in MergeWith() 787 ScopedFlock profile_file = in Load() local 790 if (profile_file.get() == nullptr) { in Load() 798 int fd = profile_file->Fd(); in Load() 813 if (profile_file->ClearContent()) { in Load() 898 ScopedFlock profile_file = in SaveFallback() local 900 if (profile_file.get() == nullptr) { in SaveFallback() 905 int fd = profile_file->Fd(); in SaveFallback() [all …]
|
/art/odrefresh/ |
D | odrefresh.cc | 476 std::unique_ptr<File> profile_file(OS::OpenFileForReading(path.c_str())); in AddDex2OatProfile() local 477 if (profile_file != nullptr) { in AddDex2OatProfile() 478 args.Add("--profile-file-fd=%d", profile_file->Fd()); in AddDex2OatProfile() 479 output_files.emplace_back(std::move(profile_file)); in AddDex2OatProfile()
|