Mercurial > hg > graal-compiler
changeset 18171:9bb816169777
Report code install timer in hosted mode
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Mon, 27 Oct 2014 13:37:06 -0700 |
parents | c88ab4f1f04a |
children | c59612b9d110 |
files | src/share/vm/compiler/compileBroker.cpp src/share/vm/graal/graalCompiler.cpp src/share/vm/graal/graalCompiler.hpp |
diffstat | 3 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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;
--- 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