Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/java.cpp @ 12875:d13d7aba8c12
8023657: New type profiling points: arguments to call
Summary: x86 interpreter and c1 type profiling for arguments at calls
Reviewed-by: kvn, twisti
author | roland |
---|---|
date | Wed, 09 Oct 2013 16:32:21 +0200 |
parents | 63147986a428 |
children | 5ccbab1c69f3 |
comparison
equal
deleted
inserted
replaced
12874:46ef27bcacb3 | 12875:d13d7aba8c12 |
---|---|
181 collected_profiled_methods = new GrowableArray<Method*>(1024); | 181 collected_profiled_methods = new GrowableArray<Method*>(1024); |
182 SystemDictionary::methods_do(collect_profiled_methods); | 182 SystemDictionary::methods_do(collect_profiled_methods); |
183 collected_profiled_methods->sort(&compare_methods); | 183 collected_profiled_methods->sort(&compare_methods); |
184 | 184 |
185 int count = collected_profiled_methods->length(); | 185 int count = collected_profiled_methods->length(); |
186 int total_size = 0; | |
186 if (count > 0) { | 187 if (count > 0) { |
187 for (int index = 0; index < count; index++) { | 188 for (int index = 0; index < count; index++) { |
188 Method* m = collected_profiled_methods->at(index); | 189 Method* m = collected_profiled_methods->at(index); |
189 ttyLocker ttyl; | 190 ttyLocker ttyl; |
190 tty->print_cr("------------------------------------------------------------------------"); | 191 tty->print_cr("------------------------------------------------------------------------"); |
191 //m->print_name(tty); | 192 //m->print_name(tty); |
192 m->print_invocation_count(); | 193 m->print_invocation_count(); |
194 tty->print_cr(" mdo size: %d bytes", m->method_data()->size_in_bytes()); | |
193 tty->cr(); | 195 tty->cr(); |
194 m->print_codes(); | 196 m->print_codes(); |
197 total_size += m->method_data()->size_in_bytes(); | |
195 } | 198 } |
196 tty->print_cr("------------------------------------------------------------------------"); | 199 tty->print_cr("------------------------------------------------------------------------"); |
200 tty->print_cr("Total MDO size: %d bytes", total_size); | |
197 } | 201 } |
198 } | 202 } |
199 | 203 |
200 void print_bytecode_count() { | 204 void print_bytecode_count() { |
201 if (CountBytecodes || TraceBytecodes || StopInterpreterAt) { | 205 if (CountBytecodes || TraceBytecodes || StopInterpreterAt) { |