Don't check if the profile exists on app startup.
When ART Service is enabled, we don't create empty profile files on app
install. Instead, files are created when we save profiles. Therefore,
the profile files don't necessarily exist on app startup.
Bug: 267126661
Test: -
1. Do the steps described in b/267126661.
2. See that the profile is saved.
Change-Id: I0d7ea08fcd5be1dfaf2bf406eb4478776fc744ef
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index 3f337f4..2aed680 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -2774,11 +2774,6 @@
LOG(WARNING) << "JIT profile information will not be recorded: profile filename is empty.";
return;
}
- if (!OS::FileExists(profile_output_filename.c_str(), /*check_file_type=*/ false)) {
- LOG(WARNING) << "JIT profile information will not be recorded: profile file does not exist: "
- << profile_output_filename;
- return;
- }
if (code_paths.empty()) {
LOG(WARNING) << "JIT profile information will not be recorded: code paths is empty.";
return;