Bump LLVM compile time warnings to make them less spammy.
This sets the warning to 1 second for portable vs 100 ms for quick. It's still
plenty spammy.
Change-Id: I4c4e272584dfad44865d83e64c998ad66895cf2f
diff --git a/src/compiler.cc b/src/compiler.cc
index ff8b756..1988212 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1639,7 +1639,12 @@
CHECK(compiled_method != NULL) << PrettyMethod(method_idx, dex_file);
}
uint64_t duration_ns = NanoTime() - start_ns;
- if (duration_ns > MsToNs(100)) {
+#ifdef ART_USE_LLVM_COMPILER
+ const uint64_t kWarnMilliSeconds = 1000;
+#else
+ const uint64_t kWarnMilliSeconds = 100;
+#endif
+ if (duration_ns > MsToNs(kWarnMilliSeconds)) {
LOG(WARNING) << "Compilation of " << PrettyMethod(method_idx, dex_file)
<< " took " << PrettyDuration(duration_ns);
}