# HG changeset patch # User Tom Rodriguez # Date 1414442226 25200 # Node ID 9bb816169777da9ee852648f3d5d94321fd92f96 # Parent c88ab4f1f04aabe399bb47666fe14ba8a2ecf453 Report code install timer in hosted mode diff -r c88ab4f1f04a -r 9bb816169777 src/share/vm/compiler/compileBroker.cpp --- a/src/share/vm/compiler/compileBroker.cpp Fri Oct 24 16:18:10 2014 +0200 +++ b/src/share/vm/compiler/compileBroker.cpp Mon Oct 27 13:37:06 2014 -0700 @@ -2436,6 +2436,11 @@ total_compile_count = osr_compile_count + standard_compile_count; total_compilation.add(osr_compilation); total_compilation.add(standard_compilation); + +#ifndef COMPILERGRAAL + // In hosted mode, print the Graal compiler specific counters manually. + GraalCompiler::print_compilation_timers(); +#endif #else elapsedTimer standard_compilation = CompileBroker::_t_standard_compilation; elapsedTimer osr_compilation = CompileBroker::_t_osr_compilation; diff -r c88ab4f1f04a -r 9bb816169777 src/share/vm/graal/graalCompiler.cpp --- a/src/share/vm/graal/graalCompiler.cpp Fri Oct 24 16:18:10 2014 +0200 +++ b/src/share/vm/graal/graalCompiler.cpp Mon Oct 27 13:37:06 2014 -0700 @@ -136,12 +136,17 @@ // Print compilation timers and statistics void GraalCompiler::print_timers() { + print_compilation_timers(); +} + +#endif // COMPILERGRAAL + +// Print compilation timers and statistics +void GraalCompiler::print_compilation_timers() { TRACE_graal_1("GraalCompiler::print_timers"); tty->print_cr(" Graal code install time: %6.3f s", _codeInstallTimer.seconds()); } -#endif // COMPILERGRAAL - #ifndef PRODUCT void GraalCompiler::compile_the_world() { HandleMark hm; diff -r c88ab4f1f04a -r 9bb816169777 src/share/vm/graal/graalCompiler.hpp --- a/src/share/vm/graal/graalCompiler.hpp Fri Oct 24 16:18:10 2014 +0200 +++ b/src/share/vm/graal/graalCompiler.hpp Mon Oct 27 13:37:06 2014 -0700 @@ -81,6 +81,9 @@ void reset_compilation_stats(); #endif // COMPILERGRAAL + // Print compilation timers and statistics + static void print_compilation_timers(); + static elapsedTimer* codeInstallTimer() { return &_codeInstallTimer; } #ifndef PRODUCT