< prev index next >

src/share/vm/compiler/compileBroker.cpp

Print this page
rev 10979 : 8140594: Various minor code improvements (compiler)


2375     comp->print_timers();
2376   }
2377   tty->cr();
2378   tty->print_cr("  Total compiled methods    : %8d methods", total_compile_count);
2379   tty->print_cr("    Standard compilation    : %8d methods", standard_compile_count);
2380   tty->print_cr("    On stack replacement    : %8d methods", osr_compile_count);
2381   int tcb = osr_bytes_compiled + standard_bytes_compiled;
2382   tty->print_cr("  Total compiled bytecodes  : %8d bytes", tcb);
2383   tty->print_cr("    Standard compilation    : %8d bytes", standard_bytes_compiled);
2384   tty->print_cr("    On stack replacement    : %8d bytes", osr_bytes_compiled);
2385   double tcs = total_compilation.seconds();
2386   int bps = tcs == 0.0 ? 0 : (int)(tcb / tcs);
2387   tty->print_cr("  Average compilation speed : %8d bytes/s", bps);
2388   tty->cr();
2389   tty->print_cr("  nmethod code size         : %8d bytes", nmethods_code_size);
2390   tty->print_cr("  nmethod total size        : %8d bytes", nmethods_size);
2391 }
2392 
2393 // Debugging output for failure
2394 void CompileBroker::print_last_compile() {
2395   if ( _last_compile_level != CompLevel_none &&
2396        compiler(_last_compile_level) != NULL &&
2397        _last_method_compiled != NULL &&
2398        _last_compile_type != no_compile) {
2399     if (_last_compile_type == osr_compile) {
2400       tty->print_cr("Last parse:  [osr]%d+++(%d) %s",
2401                     _osr_compilation_id, _last_compile_level, _last_method_compiled);
2402     } else {
2403       tty->print_cr("Last parse:  %d+++(%d) %s",
2404                     _compilation_id, _last_compile_level, _last_method_compiled);
2405     }
2406   }
2407 }
2408 


2375     comp->print_timers();
2376   }
2377   tty->cr();
2378   tty->print_cr("  Total compiled methods    : %8d methods", total_compile_count);
2379   tty->print_cr("    Standard compilation    : %8d methods", standard_compile_count);
2380   tty->print_cr("    On stack replacement    : %8d methods", osr_compile_count);
2381   int tcb = osr_bytes_compiled + standard_bytes_compiled;
2382   tty->print_cr("  Total compiled bytecodes  : %8d bytes", tcb);
2383   tty->print_cr("    Standard compilation    : %8d bytes", standard_bytes_compiled);
2384   tty->print_cr("    On stack replacement    : %8d bytes", osr_bytes_compiled);
2385   double tcs = total_compilation.seconds();
2386   int bps = tcs == 0.0 ? 0 : (int)(tcb / tcs);
2387   tty->print_cr("  Average compilation speed : %8d bytes/s", bps);
2388   tty->cr();
2389   tty->print_cr("  nmethod code size         : %8d bytes", nmethods_code_size);
2390   tty->print_cr("  nmethod total size        : %8d bytes", nmethods_size);
2391 }
2392 
2393 // Debugging output for failure
2394 void CompileBroker::print_last_compile() {
2395   if (_last_compile_level != CompLevel_none &&
2396       compiler(_last_compile_level) != NULL &&

2397       _last_compile_type != no_compile) {
2398     if (_last_compile_type == osr_compile) {
2399       tty->print_cr("Last parse:  [osr]%d+++(%d) %s",
2400                     _osr_compilation_id, _last_compile_level, _last_method_compiled);
2401     } else {
2402       tty->print_cr("Last parse:  %d+++(%d) %s",
2403                     _compilation_id, _last_compile_level, _last_method_compiled);
2404     }
2405   }
2406 }
2407 
< prev index next >