diff -r 46ef27bcacb3 -r d13d7aba8c12 src/share/vm/runtime/java.cpp --- a/src/share/vm/runtime/java.cpp Wed Oct 09 11:05:17 2013 -0700 +++ b/src/share/vm/runtime/java.cpp Wed Oct 09 16:32:21 2013 +0200 @@ -183,6 +183,7 @@ collected_profiled_methods->sort(&compare_methods); int count = collected_profiled_methods->length(); + int total_size = 0; if (count > 0) { for (int index = 0; index < count; index++) { Method* m = collected_profiled_methods->at(index); @@ -190,10 +191,13 @@ tty->print_cr("------------------------------------------------------------------------"); //m->print_name(tty); m->print_invocation_count(); + tty->print_cr(" mdo size: %d bytes", m->method_data()->size_in_bytes()); tty->cr(); m->print_codes(); + total_size += m->method_data()->size_in_bytes(); } tty->print_cr("------------------------------------------------------------------------"); + tty->print_cr("Total MDO size: %d bytes", total_size); } }