Pretty print startup methods in profile dump
Test: manual
Change-Id: Ic791a622b618013ad50893a4168b18fe39d638ed
diff --git a/runtime/jit/profile_compilation_info.cc b/runtime/jit/profile_compilation_info.cc
index bb8e5e5..bb0048d 100644
--- a/runtime/jit/profile_compilation_info.cc
+++ b/runtime/jit/profile_compilation_info.cc
@@ -1582,7 +1582,11 @@
for (uint32_t method_idx = 0; method_idx < dex_data->num_method_ids; ++method_idx) {
MethodHotness hotness_info(dex_data->GetHotnessInfo(method_idx));
if (startup ? hotness_info.IsStartup() : hotness_info.IsPostStartup()) {
- os << method_idx << ", ";
+ if (dex_file != nullptr) {
+ os << "\n\t\t" << dex_file->PrettyMethod(method_idx, true);
+ } else {
+ os << method_idx << ", ";
+ }
}
}
if (startup == false) {