diff options
author | 2016-01-05 14:29:29 +0000 | |
---|---|---|
committer | 2016-01-19 11:17:24 -0800 | |
commit | 877fd963548a3175665bfef25b0d24bc0e5a0135 (patch) | |
tree | db4cae18266f7cd9415a362c21d50fef93a8488f /compiler/profile_assistant.h | |
parent | 37a5abcf5e7644ae1fd1a85e865c8a71e38a9af2 (diff) |
Improve profile processing
- allow file descriptors in addition to file names for profiles
- fix some minor issues (wrong comparison signs, unhandled errors)
- added gtests for profile_compilation_info, profile_assistant
and compiler_driver
Bug: 26080105
Change-Id: I136039fa1f25858399000049e48b01eafae54eb1
Diffstat (limited to 'compiler/profile_assistant.h')
-rw-r--r-- | compiler/profile_assistant.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/compiler/profile_assistant.h b/compiler/profile_assistant.h index 088c8bd1c7..ad5e2163cf 100644 --- a/compiler/profile_assistant.h +++ b/compiler/profile_assistant.h @@ -20,6 +20,7 @@ #include <string> #include <vector> +#include "base/scoped_flock.h" #include "jit/offline_profiling_info.cc" namespace art { @@ -52,7 +53,17 @@ class ProfileAssistant { const std::vector<std::string>& reference_profile_files, /*out*/ ProfileCompilationInfo** profile_compilation_info); + static bool ProcessProfiles( + const std::vector<uint32_t>& profile_files_fd_, + const std::vector<uint32_t>& reference_profile_files_fd_, + /*out*/ ProfileCompilationInfo** profile_compilation_info); + private: + static bool ProcessProfilesInternal( + const std::vector<ScopedFlock>& profile_files, + const std::vector<ScopedFlock>& reference_profile_files, + /*out*/ ProfileCompilationInfo** profile_compilation_info); + DISALLOW_COPY_AND_ASSIGN(ProfileAssistant); }; |