summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2016-03-16 19:08:31 -0700
committerMathieu Chartier <mathieuc@google.com>2016-03-18 15:21:08 -0700
commita807780b1d8ee01dfb03923c673621b4c81ac858 (patch)
treeef7485dca9ad8375559524d74b7c4971d6f088fa /compiler/driver/compiler_options.cc
parent895375bb30716a488bf7b8234e900d1e15de1d21 (diff)
Add verify-profile compiler filter
Only verifies and dex2dex compiles classes in the profile. Goal is to reduce application launch time. ~2x faster than interpret-only for Facebook. Bug: 27688727 (cherry picked from commit a079e3aa62cceb76c1c1811e6e09bcaf75e20289) Change-Id: Iad5aa1adee3aa6c2408820e8cbbab2d4412021b8
Diffstat (limited to 'compiler/driver/compiler_options.cc')
-rw-r--r--compiler/driver/compiler_options.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/driver/compiler_options.cc b/compiler/driver/compiler_options.cc
index 43bdbf3d4d..b4389d3c95 100644
--- a/compiler/driver/compiler_options.cc
+++ b/compiler/driver/compiler_options.cc
@@ -195,6 +195,8 @@ bool CompilerOptions::ParseCompilerOption(const StringPiece& option, UsageFn Usa
compiler_filter_ = CompilerOptions::kEverything;
} else if (strcmp(compiler_filter_string, "time") == 0) {
compiler_filter_ = CompilerOptions::kTime;
+ } else if (strcmp(compiler_filter_string, "verify-profile") == 0) {
+ compiler_filter_ = CompilerOptions::kVerifyProfile;
} else {
Usage("Unknown --compiler-filter value %s", compiler_filter_string);
}