diff options
Diffstat (limited to 'compiler/jit/jit_compiler.cc')
| -rw-r--r-- | compiler/jit/jit_compiler.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/jit/jit_compiler.cc b/compiler/jit/jit_compiler.cc index bbf34585eb..1957c82ef5 100644 --- a/compiler/jit/jit_compiler.cc +++ b/compiler/jit/jit_compiler.cc @@ -197,7 +197,13 @@ bool JitCompiler::CompileMethod(Thread* self, ArtMethod* method, bool baseline, { TimingLogger::ScopedTiming t2("Compiling", &logger); JitCodeCache* const code_cache = runtime->GetJit()->GetCodeCache(); + uint64_t start_ns = NanoTime(); success = compiler_->JitCompile(self, code_cache, method, baseline, osr, jit_logger_.get()); + uint64_t duration_ns = NanoTime() - start_ns; + VLOG(jit) << "Compilation of " + << method->PrettyMethod() + << " took " + << PrettyDuration(duration_ns); } // Trim maps to reduce memory usage. |