diff options
Diffstat (limited to 'runtime/parsed_options.cc')
| -rw-r--r-- | runtime/parsed_options.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/parsed_options.cc b/runtime/parsed_options.cc index 87106d6003..ef20d1ce22 100644 --- a/runtime/parsed_options.cc +++ b/runtime/parsed_options.cc @@ -563,6 +563,10 @@ bool ParsedOptions::Parse(const Runtime::Options& options, bool ignore_unrecogni if (!ParseDouble(option, ':', 0.0, 100.0, &profiler_options_.top_k_change_threshold_)) { return false; } + } else if (option == "-Xprofile-type:method") { + profiler_options_.profile_type_ = kProfilerMethod; + } else if (option == "-Xprofile-type:dexpc") { + profiler_options_.profile_type_ = kProfilerMethodAndDexPC; } else if (StartsWith(option, "-implicit-checks:")) { std::string checks; if (!ParseStringAfterChar(option, ':', &checks)) { @@ -806,6 +810,7 @@ void ParsedOptions::Usage(const char* fmt, ...) { UsageMessage(stream, " -Xprofile-start-immediately\n"); UsageMessage(stream, " -Xprofile-top-k-threshold:doublevalue\n"); UsageMessage(stream, " -Xprofile-top-k-change-threshold:doublevalue\n"); + UsageMessage(stream, " -Xprofile-type:{method,dexpc}\n"); UsageMessage(stream, " -Xcompiler:filename\n"); UsageMessage(stream, " -Xcompiler-option dex2oat-option\n"); UsageMessage(stream, " -Ximage-compiler-option dex2oat-option\n"); |