Make non-debug dex2oat omit timing and stats information

This is to try and avoid logcat rollovers during startup in stability monkey runs

Change-Id: I32a84517fdb97829d7efa3067cb99e2f38b049ae
diff --git a/src/compiler.cc b/src/compiler.cc
index 7d71278..4d39cd7 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -309,7 +309,8 @@
 }
 
 Compiler::Compiler(InstructionSet instruction_set, bool image, size_t thread_count,
-                   bool support_debugging, const std::set<std::string>* image_classes)
+                   bool support_debugging, const std::set<std::string>* image_classes,
+                   bool dump_stats, bool dump_timings)
     : instruction_set_(instruction_set),
       compiled_classes_lock_("compiled classes lock"),
       compiled_methods_lock_("compiled method lock"),
@@ -318,6 +319,8 @@
       thread_count_(thread_count),
       support_debugging_(support_debugging),
       stats_(new AOTCompilationStats),
+      dump_stats_(dump_stats),
+      dump_timings_(dump_timings),
       image_classes_(image_classes),
       compiler_library_(NULL),
       compiler_(NULL),
@@ -423,11 +426,13 @@
   PostCompile(class_loader, dex_files);
   timings.AddSplit("PostCompile");
 
-  if (timings.GetTotalNs() > MsToNs(1000)) {
+  if (dump_timings_ && timings.GetTotalNs() > MsToNs(1000)) {
     timings.Dump();
   }
 
-  stats_->Dump();
+  if (dump_stats_) {
+    stats_->Dump();
+  }
 }
 
 void Compiler::CompileOne(const Method* method) {