summaryrefslogtreecommitdiff
path: root/compiler/jit/jit_compiler.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2019-04-03 10:29:29 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2019-04-03 15:15:15 +0000
commitf59bc11bc0bd6c443d5350f24e4569f841e0beea (patch)
tree6a78bf1a1db9ef2becbb7bb9f3313d27630dd97f /compiler/jit/jit_compiler.cc
parent30167d24077495f7d4e701fbbbcfd458537f6a6e (diff)
Couple of improvements in the jit zygote pass.
- Handle the resolution stub. - In verbose mode, log the time to JIT compile. - Handle the case jit is disabled. - Don't look at methods that are in the jars located in the runtime module. Bug: 119800099 Test: m Change-Id: Ib12586cc65b3791e066e96ce7e36985cfb612059
Diffstat (limited to 'compiler/jit/jit_compiler.cc')
-rw-r--r--compiler/jit/jit_compiler.cc6
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.