mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
8028468: Add inlining information into ciReplay
Allow dump and replay inlining for specified method during a program execution. Reviewed-by: roland, twisti
This commit is contained in:
parent
1defb28228
commit
ba7149bbda
18 changed files with 668 additions and 171 deletions
|
@ -1357,15 +1357,21 @@ ciMethodBlocks *ciMethod::get_method_blocks() {
|
|||
|
||||
#undef FETCH_FLAG_FROM_VM
|
||||
|
||||
void ciMethod::dump_name_as_ascii(outputStream* st) {
|
||||
Method* method = get_Method();
|
||||
st->print("%s %s %s",
|
||||
method->klass_name()->as_quoted_ascii(),
|
||||
method->name()->as_quoted_ascii(),
|
||||
method->signature()->as_quoted_ascii());
|
||||
}
|
||||
|
||||
void ciMethod::dump_replay_data(outputStream* st) {
|
||||
ResourceMark rm;
|
||||
Method* method = get_Method();
|
||||
MethodCounters* mcs = method->method_counters();
|
||||
Klass* holder = method->method_holder();
|
||||
st->print_cr("ciMethod %s %s %s %d %d %d %d %d",
|
||||
holder->name()->as_quoted_ascii(),
|
||||
method->name()->as_quoted_ascii(),
|
||||
method->signature()->as_quoted_ascii(),
|
||||
st->print("ciMethod ");
|
||||
dump_name_as_ascii(st);
|
||||
st->print_cr(" %d %d %d %d %d",
|
||||
mcs == NULL ? 0 : mcs->invocation_counter()->raw_counter(),
|
||||
mcs == NULL ? 0 : mcs->backedge_counter()->raw_counter(),
|
||||
interpreter_invocation_count(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue