From 8891ea4eac12b8f48934d47f2d99da1e9b455788 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Fri, 1 Dec 2023 14:47:37 +0000 Subject: Put branch profiling under a flag. Until we evaluate its usefulness and reduce its overhead. Bug: 306638020 Test: test.py Change-Id: Ibb01c70a7ea19b03802dcc1b0792d3d2ff4f4d67 --- compiler/driver/compiler_options.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compiler/driver/compiler_options.h') 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_; -- cgit v1.2.3-59-g8ed1b