diff options
author | Calin Juravle <calin@google.com> | 2015-11-19 17:26:29 +0000 |
---|---|---|
committer | Calin Juravle <calin@google.com> | 2015-12-01 13:08:46 +0000 |
commit | ad543383b5883d6e32993efaefc704eff3225ffe (patch) | |
tree | a90a46d0f6c599c16c9349c6d7eefd6b7ac6a309 /compiler/optimizing/optimizing_compiler.cc | |
parent | 60c4c6ad2b892bb00a6016a147b1cc089ba6bcb5 (diff) |
Clean up optimizing compiler stats
- removed unused stats.
- add 'OptStat' prefix to the names of the printed
stats to make them `grep` friendly.
Change-Id: I189e98b5226465c88c4a00247cd0b9b2ddb6d66e
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r-- | compiler/optimizing/optimizing_compiler.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 2204921c53..c95aeebe63 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -598,8 +598,6 @@ CompiledMethod* OptimizingCompiler::EmitOptimized(ArenaAllocator* arena, stack_map.resize(codegen->ComputeStackMapsSize()); codegen->BuildStackMaps(MemoryRegion(stack_map.data(), stack_map.size())); - MaybeRecordStat(MethodCompilationStat::kCompiledOptimized); - CompiledMethod* compiled_method = CompiledMethod::SwapAllocCompiledMethod( compiler_driver, codegen->GetInstructionSet(), @@ -634,7 +632,6 @@ CompiledMethod* OptimizingCompiler::EmitBaseline( ArenaVector<uint8_t> gc_map(arena->Adapter(kArenaAllocBaselineMaps)); codegen->BuildNativeGCMap(&gc_map, *compiler_driver); - MaybeRecordStat(MethodCompilationStat::kCompiledBaseline); CompiledMethod* compiled_method = CompiledMethod::SwapAllocCompiledMethod( compiler_driver, codegen->GetInstructionSet(), @@ -839,6 +836,7 @@ CompiledMethod* OptimizingCompiler::Compile(const DexFile::CodeItem* code_item, dex_file, dex_cache)); if (codegen.get() != nullptr) { + MaybeRecordStat(MethodCompilationStat::kCompiled); if (run_optimizations_) { method = EmitOptimized(&arena, &code_allocator, codegen.get(), compiler_driver); } else { @@ -849,7 +847,7 @@ CompiledMethod* OptimizingCompiler::Compile(const DexFile::CodeItem* code_item, if (compiler_driver->GetCompilerOptions().VerifyAtRuntime()) { MaybeRecordStat(MethodCompilationStat::kNotCompiledVerifyAtRuntime); } else { - MaybeRecordStat(MethodCompilationStat::kNotCompiledClassNotVerified); + MaybeRecordStat(MethodCompilationStat::kNotCompiledVerificationError); } } |