summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options_map-inl.h
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2018-11-21 22:25:21 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-11-21 22:25:21 +0000
commitf759dc027507d0092a49d9ec146dc37ca4534dd4 (patch)
treeb500f8a4724876b45b9ea49676defd1152c5ac84 /compiler/driver/compiler_options_map-inl.h
parent5a78e8dbf068c544b84e98f636b30045b09451c4 (diff)
parent5c803116e26ef40ad2a9c14d3411e21d149e0c9b (diff)
Merge "ART: Add profile-compile-check support"
Diffstat (limited to 'compiler/driver/compiler_options_map-inl.h')
-rw-r--r--compiler/driver/compiler_options_map-inl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/driver/compiler_options_map-inl.h b/compiler/driver/compiler_options_map-inl.h
index 5a844959c4..c7334a72e7 100644
--- a/compiler/driver/compiler_options_map-inl.h
+++ b/compiler/driver/compiler_options_map-inl.h
@@ -81,6 +81,9 @@ inline bool ReadCompilerOptions(Base& map, CompilerOptions* options, std::string
options->count_hotness_in_compiled_code_ = true;
}
map.AssignIfExists(Base::ResolveStartupConstStrings, &options->resolve_startup_const_strings_);
+ if (map.Exists(Base::CheckProfiledMethods)) {
+ options->check_profiled_methods_ = *map.Get(Base::CheckProfiledMethods);
+ }
if (map.Exists(Base::DumpTimings)) {
options->dump_timings_ = true;
@@ -145,6 +148,12 @@ inline void AddCompilerOptionsArgumentParserOptions(Builder& b) {
.Define({"--count-hotness-in-compiled-code"})
.IntoKey(Map::CountHotnessInCompiledCode)
+ .Define({"--check-profiled-methods=_"})
+ .template WithType<ProfileMethodsCheck>()
+ .WithValueMap({{"log", ProfileMethodsCheck::kLog},
+ {"abort", ProfileMethodsCheck::kAbort}})
+ .IntoKey(Map::CheckProfiledMethods)
+
.Define({"--dump-timings"})
.IntoKey(Map::DumpTimings)