8073607: add trace events for inlining

Reviewed-by: kvn, fzhinkin, mgronlun
This commit is contained in:
Igor Ignatyev 2015-03-13 21:53:13 +03:00
parent 2632925f9f
commit 140bf2be86
6 changed files with 72 additions and 15 deletions

View file

@ -4306,7 +4306,18 @@ void GraphBuilder::print_inlining(ciMethod* callee, const char* msg, bool succes
log->inline_fail("reason unknown");
}
}
#if INCLUDE_TRACE
EventCompilerInlining event;
if (event.should_commit()) {
event.set_compileID(compilation()->env()->task()->compile_id());
event.set_message(msg);
event.set_succeeded(success);
event.set_bci(bci());
event.set_caller(method()->get_Method());
event.set_callee(callee->to_trace_struct());
event.commit();
}
#endif // INCLUDE_TRACE
if (!PrintInlining && !compilation()->method()->has_option("PrintInlining")) {
return;
}