diff options
| author | 2011-12-12 18:29:24 -0800 | |
|---|---|---|
| committer | 2011-12-13 08:23:08 -0800 | |
| commit | 4dd9b4d95eec9db5338fb9bf132f9bb8facf6cf4 (patch) | |
| tree | f9dc6f6e6a55acea3a08f1f568ae6900c1dd7dd1 /src/compiler/Frontend.cc | |
| parent | 20a409c99a649a01cb7c65bd1089988445d8cdfd (diff) | |
Clean up verbose logging.
Change-Id: I6b01980e7145c4f8d25a5b50f620903f61a1b427
Diffstat (limited to 'src/compiler/Frontend.cc')
| -rw-r--r-- | src/compiler/Frontend.cc | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/compiler/Frontend.cc b/src/compiler/Frontend.cc index ecc281b6fb..75f5d7dc66 100644 --- a/src/compiler/Frontend.cc +++ b/src/compiler/Frontend.cc @@ -698,9 +698,7 @@ CompiledMethod* oatCompileMethod(const Compiler& compiler, const art::DexFile::C const art::ClassLoader* class_loader, const art::DexFile& dex_file, art::InstructionSet insnSet) { - if (compiler.IsVerbose()) { - LOG(INFO) << "Compiling " << PrettyMethod(method_idx, dex_file) << "..."; - } + VLOG(compiler) << "Compiling " << PrettyMethod(method_idx, dex_file) << "..."; oatArenaReset(); const u2* codePtr = code_item->insns_; @@ -735,7 +733,7 @@ CompiledMethod* oatCompileMethod(const Compiler& compiler, const art::DexFile::C if (!useMatch || match) { cUnit->disableOpt = compilerOptimizerDisableFlags; cUnit->enableDebug = compilerDebugFlags; - cUnit->printMe = compiler.IsVerbose() || (cUnit->enableDebug & (1 << kDebugVerbose)); + cUnit->printMe = VLOG_IS_ON(compiler) || (cUnit->enableDebug & (1 << kDebugVerbose)); } /* Assume non-throwing leaf */ @@ -919,10 +917,8 @@ CompiledMethod* oatCompileMethod(const Compiler& compiler, const art::DexFile::C cUnit->fpSpillMask, cUnit->mappingTable, vmapTable); - if (compiler.IsVerbose()) { - LOG(INFO) << "Compiled " << PrettyMethod(method_idx, dex_file) - << " (" << (cUnit->codeBuffer.size() * sizeof(cUnit->codeBuffer[0])) << " bytes)"; - } + VLOG(compiler) << "Compiled " << PrettyMethod(method_idx, dex_file) + << " (" << (cUnit->codeBuffer.size() * sizeof(cUnit->codeBuffer[0])) << " bytes)"; return result; } @@ -933,9 +929,7 @@ void oatInit(const Compiler& compiler) if (initialized) return; initialized = true; - if (compiler.IsVerbose()) { - LOG(INFO) << "Initializing compiler"; - } + VLOG(compiler) << "Initializing compiler"; if (!oatArchInit()) { LOG(FATAL) << "Failed to initialize oat"; } |