summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2023-12-01 14:47:37 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2023-12-04 10:35:16 +0000
commit8891ea4eac12b8f48934d47f2d99da1e9b455788 (patch)
tree00b523efef48ab608779156af751e1bf38c70091 /compiler/driver/compiler_options.h
parentf51e433b5d32cb83eb2ee302544ecf67a10525b9 (diff)
Put branch profiling under a flag.
Until we evaluate its usefulness and reduce its overhead. Bug: 306638020 Test: test.py Change-Id: Ibb01c70a7ea19b03802dcc1b0792d3d2ff4f4d67
Diffstat (limited to 'compiler/driver/compiler_options.h')
-rw-r--r--compiler/driver/compiler_options.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h
index f816c1485d..3064729597 100644
--- a/compiler/driver/compiler_options.h
+++ b/compiler/driver/compiler_options.h
@@ -220,6 +220,10 @@ class CompilerOptions final {
return baseline_;
}
+ bool ProfileBranches() const {
+ return profile_branches_;
+ }
+
// Are we compiling an app image?
bool IsAppImage() const {
return image_type_ == ImageType::kAppImage;
@@ -427,6 +431,7 @@ class CompilerOptions final {
bool dump_timings_;
bool dump_pass_timings_;
bool dump_stats_;
+ bool profile_branches_;
// Info for profile guided compilation.
const ProfileCompilationInfo* profile_compilation_info_;