summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimizing_compiler.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2017-10-12 09:05:08 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-10-12 09:05:08 +0000
commit0284f43d625f0776ee0586a7cc321e11f5405e8c (patch)
tree983c86ff79f2a5a089bfa44ec27a5f2c5d6206b6 /compiler/optimizing/optimizing_compiler.cc
parent128acd4b5b34cdd51328de03df085deaa040b864 (diff)
parent52d52f5dc3e005829926e68c656fb27e8b008ae9 (diff)
Merge changes I4bbb21bf,Ie79b46cd,Ia50aafc8
* changes: Use ScopedArenaAllocator in GVN. Use ScopedArenaAllocator for Phi elimination pass. Use ScopedArenaAllocator for building HGraph.
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r--compiler/optimizing/optimizing_compiler.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc
index 9bfb7a5c50..42f32b7866 100644
--- a/compiler/optimizing/optimizing_compiler.cc
+++ b/compiler/optimizing/optimizing_compiler.cc
@@ -1146,7 +1146,8 @@ CompiledMethod* OptimizingCompiler::Compile(const DexFile::CodeItem* code_item,
if (total_allocated > kArenaAllocatorMemoryReportThreshold) {
MemStats mem_stats(allocator.GetMemStats());
MemStats peak_stats(arena_stack.GetPeakStats());
- LOG(INFO) << dex_file.PrettyMethod(method_idx)
+ LOG(INFO) << "Used " << total_allocated << " bytes of arena memory for compiling "
+ << dex_file.PrettyMethod(method_idx)
<< "\n" << Dumpable<MemStats>(mem_stats)
<< "\n" << Dumpable<MemStats>(peak_stats);
}
@@ -1256,7 +1257,8 @@ bool OptimizingCompiler::JitCompile(Thread* self,
if (total_allocated > kArenaAllocatorMemoryReportThreshold) {
MemStats mem_stats(allocator.GetMemStats());
MemStats peak_stats(arena_stack.GetPeakStats());
- LOG(INFO) << dex_file->PrettyMethod(method_idx)
+ LOG(INFO) << "Used " << total_allocated << " bytes of arena memory for compiling "
+ << dex_file->PrettyMethod(method_idx)
<< "\n" << Dumpable<MemStats>(mem_stats)
<< "\n" << Dumpable<MemStats>(peak_stats);
}