8060215: per-method PrintIdealGraphLevel

Use CompileCommand=option to set PrintIdealGraphLevel on a per-method level. Introduce the PrintIdealGraph develop to control/check if printing the graph is enabled for any method

Reviewed-by: kvn, dlong, thartmann
This commit is contained in:
Zoltan Majo 2014-10-15 10:51:43 +02:00
parent 38e46e728d
commit bde7fd61b4
7 changed files with 39 additions and 9 deletions

View file

@ -2344,7 +2344,7 @@ void Parse::do_one_bytecode() {
#ifndef PRODUCT
IdealGraphPrinter *printer = IdealGraphPrinter::printer();
if(printer) {
if (printer && printer->should_print(_method)) {
char buffer[256];
sprintf(buffer, "Bytecode %d: %s", bci(), Bytecodes::name(bc()));
bool old = printer->traverse_outs();