diff options
author | Vladimir Marko <vmarko@google.com> | 2018-11-07 15:39:48 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2018-11-08 10:26:57 +0000 |
commit | 1a2a5cd58b7b667b664a7c20a4887a6cd89b4776 (patch) | |
tree | 8f92ca17ba6f8324881f52aa741ad5ed0f87016a /compiler/driver/compiler_options.h | |
parent | a5175541c197e7bf9b03651ea5da4e64a2ac2d27 (diff) |
Move profile compilation info to CompilerOptions.
Remove one HInliner dependency on the CompilerDriver.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: If6f0ab864095641b5697c8c6f5100520f91d5e53
Diffstat (limited to 'compiler/driver/compiler_options.h')
-rw-r--r-- | compiler/driver/compiler_options.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index 4a6bbfaae6..77f84820e5 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -42,6 +42,7 @@ class VerifierDepsTest; class DexFile; enum class InstructionSet; class InstructionSetFeatures; +class ProfileCompilationInfo; class CompilerOptions final { public: @@ -218,6 +219,10 @@ class CompilerOptions final { return compile_pic_; } + const ProfileCompilationInfo* GetProfileCompilationInfo() const { + return profile_compilation_info_; + } + bool HasVerboseMethods() const { return !verbose_methods_.empty(); } @@ -370,6 +375,9 @@ class CompilerOptions final { // When using a profile file only the top K% of the profiled samples will be compiled. double top_k_profile_threshold_; + // Info for profile guided compilation. + const ProfileCompilationInfo* profile_compilation_info_; + // Vector of methods to have verbose output enabled for. std::vector<std::string> verbose_methods_; |