phase.cpp revision 3619
5891N/A * or visit www.oracle.com if you need additional information or have any
5891N/A#include "precompiled.hpp"
5891N/A#include "code/nmethod.hpp"
5891N/A#include "compiler/compileBroker.hpp"
5891N/A#include "opto/compile.hpp"
5891N/APhase::Phase( PhaseNumber pnum ) : _pnum(pnum), C( pnum == Compiler ? NULL : Compile::current()) {
#ifndef PRODUCT
tty->print_cr (" (%3.0f bytes per sec) ", Phase::_total_bytes_compiled / Phase::_t_methodCompilation.seconds());
if (DoEscapeAnalysis) {
double percent_of_optimizer = ((optimizer_subtotal == 0.0) ? 0.0 : (optimizer_subtotal / Phase::_t_optimizer.seconds() * 100.0));
double percent_of_regalloc = ((regalloc_subtotal == 0.0) ? 0.0 : (regalloc_subtotal / Phase::_t_registerAllocation.seconds() * 100.0));
double percent_of_method_compile = ((phase_subtotal == 0.0) ? 0.0 : phase_subtotal / Phase::_t_methodCompilation.seconds()) * 100.0;