From 073ed9ba97df41862403f64d7a2e824d09ab50ed Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Fri, 13 Jun 2014 15:46:46 -0700 Subject: ART: Ignore timing issues in debug builds When in debug builds, do not warn about slow verification and compilation. Change-Id: Ib982e1c7cf40cf624688bbf6c41f0a7cc53bbc67 --- compiler/driver/compiler_driver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/driver/compiler_driver.cc') diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 16c1e00c83..3e326f0633 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -1918,7 +1918,7 @@ void CompilerDriver::CompileMethod(const DexFile::CodeItem* code_item, uint32_t } } uint64_t duration_ns = NanoTime() - start_ns; - if (duration_ns > MsToNs(compiler_->GetMaximumCompilationTimeBeforeWarning())) { + if (duration_ns > MsToNs(compiler_->GetMaximumCompilationTimeBeforeWarning()) && !kIsDebugBuild) { LOG(WARNING) << "Compilation of " << PrettyMethod(method_idx, dex_file) << " took " << PrettyDuration(duration_ns); } -- cgit v1.2.3-59-g8ed1b