diff options
| author | 2014-06-23 15:22:29 +0100 | |
|---|---|---|
| committer | 2014-06-23 18:21:15 +0100 | |
| commit | 08f7a2d06b915a5e21ded648d9feee519afd2f76 (patch) | |
| tree | 0d51637116e8ed561d7f6a571777d22706085116 /compiler/driver/compiler_driver.cc | |
| parent | 38a09040432001f1a4330ac80b80b1178e1eaf8a (diff) | |
Log profile info only on debug builds.
Change-Id: I80cce951bf4cce988c9ab8373be3e335860eadf3
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
| -rw-r--r-- | compiler/driver/compiler_driver.cc | 21 | 
1 files changed, 13 insertions, 8 deletions
| diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 3e326f0633..4a331fcb1d 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -2054,7 +2054,9 @@ bool CompilerDriver::SkipCompilation(const std::string& method_name) {    ProfileFile::ProfileData data;    if (!profile_file_.GetProfileData(&data, method_name)) {      // Not in profile, no information can be determined. -    VLOG(compiler) << "not compiling " << method_name << " because it's not in the profile"; +    if (kIsDebugBuild) { +      VLOG(compiler) << "not compiling " << method_name << " because it's not in the profile"; +    }      return true;    } @@ -2063,13 +2065,16 @@ bool CompilerDriver::SkipCompilation(const std::string& method_name) {    // falls inside a bucket.    bool compile = data.GetTopKUsedPercentage() - data.GetUsedPercent()                   <= compiler_options_->GetTopKProfileThreshold(); -  if (compile) { -    LOG(INFO) << "compiling method " << method_name << " because its usage is part of top " -        << data.GetTopKUsedPercentage() << "% with a percent of " << data.GetUsedPercent() << "%" -        << " (topKThreshold=" << compiler_options_->GetTopKProfileThreshold() << ")"; -  } else { -    VLOG(compiler) << "not compiling method " << method_name << " because it's not part of leading " -        << compiler_options_->GetTopKProfileThreshold() << "% samples)"; +  if (kIsDebugBuild) { +    if (compile) { +      LOG(INFO) << "compiling method " << method_name << " because its usage is part of top " +          << data.GetTopKUsedPercentage() << "% with a percent of " << data.GetUsedPercent() << "%" +          << " (topKThreshold=" << compiler_options_->GetTopKProfileThreshold() << ")"; +    } else { +      VLOG(compiler) << "not compiling method " << method_name +          << " because it's not part of leading " << compiler_options_->GetTopKProfileThreshold() +          << "% samples)"; +    }    }    return !compile;  } |