summaryrefslogtreecommitdiffstats
path: root/src/compiler/dex/frontend.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/dex/frontend.cc')
-rw-r--r--src/compiler/dex/frontend.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/dex/frontend.cc b/src/compiler/dex/frontend.cc
index b212e5bd0e..ca751ab849 100644
--- a/src/compiler/dex/frontend.cc
+++ b/src/compiler/dex/frontend.cc
@@ -101,6 +101,7 @@ static uint32_t kCompilerDebugFlags = 0 | // Enable debug/testing modes
//(1 << kDebugDumpCheckStats) |
//(1 << kDebugDumpBitcodeFile) |
//(1 << kDebugVerifyBitcode) |
+ //(1 << kDebugShowSummaryMemoryUsage) |
0;
static CompiledMethod* CompileMethod(CompilerDriver& compiler,
@@ -249,6 +250,11 @@ static CompiledMethod* CompileMethod(CompilerDriver& compiler,
}
}
+ if (cu->enable_debug & (1 << kDebugShowSummaryMemoryUsage)) {
+ LOG(INFO) << "MEMINFO " << cu->arena.BytesAllocated() << " " << cu->mir_graph->GetNumBlocks()
+ << " " << PrettyMethod(method_idx, dex_file);
+ }
+
return result;
}