Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompiler.cpp @ 17372:4a6e24a8fc2c
Track code installation time
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Wed, 08 Oct 2014 11:44:00 -0700 |
parents | 7404e1113697 |
children | f55f2d400797 |
comparison
equal
deleted
inserted
replaced
17371:ded2f1abfcda | 17372:4a6e24a8fc2c |
---|---|
29 #include "graal/graalRuntime.hpp" | 29 #include "graal/graalRuntime.hpp" |
30 #include "runtime/compilationPolicy.hpp" | 30 #include "runtime/compilationPolicy.hpp" |
31 #include "runtime/globals_extension.hpp" | 31 #include "runtime/globals_extension.hpp" |
32 | 32 |
33 GraalCompiler* GraalCompiler::_instance = NULL; | 33 GraalCompiler* GraalCompiler::_instance = NULL; |
34 elapsedTimer GraalCompiler::_codeInstallTimer; | |
34 | 35 |
35 GraalCompiler::GraalCompiler() : AbstractCompiler(graal) { | 36 GraalCompiler::GraalCompiler() : AbstractCompiler(graal) { |
36 #ifdef COMPILERGRAAL | 37 #ifdef COMPILERGRAAL |
37 _bootstrapping = false; | 38 _bootstrapping = false; |
38 _methodsCompiled = 0; | 39 _methodsCompiled = 0; |
150 } | 151 } |
151 | 152 |
152 // Print compilation timers and statistics | 153 // Print compilation timers and statistics |
153 void GraalCompiler::print_timers() { | 154 void GraalCompiler::print_timers() { |
154 TRACE_graal_1("GraalCompiler::print_timers"); | 155 TRACE_graal_1("GraalCompiler::print_timers"); |
156 tty->print_cr(" Graal code install time: %6.3f s", _codeInstallTimer.seconds()); | |
155 } | 157 } |
156 | 158 |
157 #endif // COMPILERGRAAL | 159 #endif // COMPILERGRAAL |
158 | 160 |
159 #ifndef PRODUCT | 161 #ifndef PRODUCT |