OSDN Git Service

Log optimization passes in verbose mode
authorWojciech Staszkiewicz <staszkiewicz@google.com>
Wed, 17 Aug 2016 00:31:19 +0000 (17:31 -0700)
committerWojciech Staszkiewicz <staszkiewicz@google.com>
Thu, 18 Aug 2016 01:36:04 +0000 (01:36 +0000)
Introduce verbose logging of optimization passes run during
compilation.

Test: m test-art-host -j32
art -Xcompiler-option --runtime-arg -Xcompiler-option -verbose:compiler
-classpath classes.dex Test
Change-Id: Iae98ce9dcafc252f2d0eec138aa05b34e424bd2a

compiler/optimizing/optimizing_compiler.cc

index 6aaa15f..3700f01 100644 (file)
@@ -180,6 +180,7 @@ class PassObserver : public ValueObject {
 
  private:
   void StartPass(const char* pass_name) {
+    VLOG(compiler) << "Starting pass: " << pass_name;
     // Dump graph first, then start timer.
     if (visualizer_enabled_) {
       visualizer_.DumpGraph(pass_name, /* is_after_pass */ false, graph_in_bad_state_);