< prev index next >

src/hotspot/share/compiler/compileBroker.cpp

Print this page
*** 186,10 ***
--- 186,11 ---
  
  uint CompileBroker::_sum_osr_bytes_compiled         = 0;
  uint CompileBroker::_sum_standard_bytes_compiled    = 0;
  uint CompileBroker::_sum_nmethod_size               = 0;
  uint CompileBroker::_sum_nmethod_code_size          = 0;
+ uint CompileBroker::_largest_nmethod_code_size      = 0;
  
  jlong CompileBroker::_peak_compilation_time        = 0;
  
  CompilerStatistics CompileBroker::_stats_per_level[CompLevel_full_optimization];
  

*** 2652,10 ***
--- 2653,11 ---
      }
  
      // Collect counts of successful compilations
      _sum_nmethod_size      += task->nm_total_size();
      _sum_nmethod_code_size += task->nm_insts_size();
+     _largest_nmethod_code_size = MAX2(_largest_nmethod_code_size, (uint) task->nm_insts_size());
      _total_compile_count++;
  
      if (UsePerfData) {
        _perf_sum_nmethod_size->inc(     task->nm_total_size());
        _perf_sum_nmethod_code_size->inc(task->nm_insts_size());

*** 2739,10 ***
--- 2741,11 ---
    uint total_compile_count = CompileBroker::_total_compile_count;
    uint total_bailout_count = CompileBroker::_total_bailout_count;
    uint total_invalidated_count = CompileBroker::_total_invalidated_count;
  
    uint nmethods_code_size = CompileBroker::_sum_nmethod_code_size;
+   uint largest_nmethod_code_size = CompileBroker::_largest_nmethod_code_size;
    uint nmethods_size = CompileBroker::_sum_nmethod_size;
  
    tty->cr();
    tty->print_cr("Accumulated compiler times");
    tty->print_cr("----------------------------------------------------------");

*** 2792,10 ***
--- 2795,11 ---
    tty->print_cr("    On stack replacement    : %8u bytes", osr_bytes_compiled);
    double tcs = total_compilation.seconds();
    uint bps = tcs == 0.0 ? 0 : (uint)(tcb / tcs);
    tty->print_cr("  Average compilation speed : %8u bytes/s", bps);
    tty->cr();
+   tty->print_cr("  largest nmethod code size : %8u bytes", largest_nmethod_code_size);
    tty->print_cr("  nmethod code size         : %8u bytes", nmethods_code_size);
    tty->print_cr("  nmethod total size        : %8u bytes", nmethods_size);
  }
  
  // Print general/accumulated JIT information.
< prev index next >