Mercurial > hg > truffle
comparison src/share/vm/ci/ciMethod.cpp @ 17622:849eb7bfceac
8028468: Add inlining information into ciReplay
Summary: Allow dump and replay inlining for specified method during a program execution.
Reviewed-by: roland, twisti
author | kvn |
---|---|
date | Wed, 08 Jan 2014 10:25:50 -0800 |
parents | b2ee5dc63353 |
children | 96d2c94bbdd0 d8a0bb6f62a5 |
comparison
equal
deleted
inserted
replaced
17621:df8573b1a44c | 17622:849eb7bfceac |
---|---|
1355 return _method_blocks; | 1355 return _method_blocks; |
1356 } | 1356 } |
1357 | 1357 |
1358 #undef FETCH_FLAG_FROM_VM | 1358 #undef FETCH_FLAG_FROM_VM |
1359 | 1359 |
1360 void ciMethod::dump_name_as_ascii(outputStream* st) { | |
1361 Method* method = get_Method(); | |
1362 st->print("%s %s %s", | |
1363 method->klass_name()->as_quoted_ascii(), | |
1364 method->name()->as_quoted_ascii(), | |
1365 method->signature()->as_quoted_ascii()); | |
1366 } | |
1367 | |
1360 void ciMethod::dump_replay_data(outputStream* st) { | 1368 void ciMethod::dump_replay_data(outputStream* st) { |
1361 ResourceMark rm; | 1369 ResourceMark rm; |
1362 Method* method = get_Method(); | 1370 Method* method = get_Method(); |
1363 MethodCounters* mcs = method->method_counters(); | 1371 MethodCounters* mcs = method->method_counters(); |
1364 Klass* holder = method->method_holder(); | 1372 st->print("ciMethod "); |
1365 st->print_cr("ciMethod %s %s %s %d %d %d %d %d", | 1373 dump_name_as_ascii(st); |
1366 holder->name()->as_quoted_ascii(), | 1374 st->print_cr(" %d %d %d %d %d", |
1367 method->name()->as_quoted_ascii(), | |
1368 method->signature()->as_quoted_ascii(), | |
1369 mcs == NULL ? 0 : mcs->invocation_counter()->raw_counter(), | 1375 mcs == NULL ? 0 : mcs->invocation_counter()->raw_counter(), |
1370 mcs == NULL ? 0 : mcs->backedge_counter()->raw_counter(), | 1376 mcs == NULL ? 0 : mcs->backedge_counter()->raw_counter(), |
1371 interpreter_invocation_count(), | 1377 interpreter_invocation_count(), |
1372 interpreter_throwout_count(), | 1378 interpreter_throwout_count(), |
1373 _instructions_size); | 1379 _instructions_size); |