comparison src/share/vm/runtime/java.cpp @ 9700:197426668a5d

Enabled nmethod statistics for the HotSpot product build.
author Christian Haeubl <haeubl@ssw.jku.at>
date Wed, 08 May 2013 17:21:38 +0200
parents 5977a55503e9
children 836a62f43af9
comparison
equal deleted inserted replaced
9699:9529ab567367 9700:197426668a5d
247 if ((PrintC1Statistics || LogVMOutput || LogCompilation) && UseCompiler) { 247 if ((PrintC1Statistics || LogVMOutput || LogCompilation) && UseCompiler) {
248 FlagSetting fs(DisplayVMOutput, DisplayVMOutput && PrintC1Statistics); 248 FlagSetting fs(DisplayVMOutput, DisplayVMOutput && PrintC1Statistics);
249 Runtime1::print_statistics(); 249 Runtime1::print_statistics();
250 Deoptimization::print_statistics(); 250 Deoptimization::print_statistics();
251 SharedRuntime::print_statistics(); 251 SharedRuntime::print_statistics();
252 nmethod::print_statistics();
253 } 252 }
254 #endif /* COMPILER1 */ 253 #endif /* COMPILER1 */
255 254
256 #ifdef COMPILER2 255 #ifdef COMPILER2
257 if ((PrintOptoStatistics || LogVMOutput || LogCompilation) && UseCompiler) { 256 if ((PrintOptoStatistics || LogVMOutput || LogCompilation) && UseCompiler) {
258 FlagSetting fs(DisplayVMOutput, DisplayVMOutput && PrintOptoStatistics); 257 FlagSetting fs(DisplayVMOutput, DisplayVMOutput && PrintOptoStatistics);
259 Compile::print_statistics(); 258 Compile::print_statistics();
260 #ifndef COMPILER1 259 #ifndef COMPILER1
261 Deoptimization::print_statistics(); 260 Deoptimization::print_statistics();
262 nmethod::print_statistics();
263 SharedRuntime::print_statistics(); 261 SharedRuntime::print_statistics();
264 #endif //COMPILER1 262 #endif //COMPILER1
265 os::print_statistics(); 263 os::print_statistics();
266 } 264 }
267 265
268 if (PrintLockStatistics || PrintPreciseBiasedLockingStatistics) { 266 if (PrintLockStatistics || PrintPreciseBiasedLockingStatistics) {
269 OptoRuntime::print_named_counters(); 267 OptoRuntime::print_named_counters();
270 } 268 }
271 269
272 if (TimeLivenessAnalysis) { 270 if (TimeLivenessAnalysis) {
276 if (CollectIndexSetStatistics) { 274 if (CollectIndexSetStatistics) {
277 IndexSet::print_statistics(); 275 IndexSet::print_statistics();
278 } 276 }
279 #endif // ASSERT 277 #endif // ASSERT
280 #endif // COMPILER2 278 #endif // COMPILER2
279
280 if (PrintNMethodStatistics) {
281 nmethod::print_statistics();
282 }
281 if (CountCompiledCalls) { 283 if (CountCompiledCalls) {
282 print_method_invocation_histogram(); 284 print_method_invocation_histogram();
283 } 285 }
284 if (ProfileInterpreter COMPILER1_PRESENT(|| C1UpdateMethodData)) { 286 if (ProfileInterpreter COMPILER1_PRESENT(|| C1UpdateMethodData)) {
285 print_method_profiling_data(); 287 print_method_profiling_data();
383 OptoRuntime::print_named_counters(); 385 OptoRuntime::print_named_counters();
384 } 386 }
385 #endif 387 #endif
386 if (PrintBiasedLockingStatistics) { 388 if (PrintBiasedLockingStatistics) {
387 BiasedLocking::print_counters(); 389 BiasedLocking::print_counters();
390 }
391 if (PrintNMethodStatistics) {
392 nmethod::print_statistics();
388 } 393 }
389 394
390 // Native memory tracking data 395 // Native memory tracking data
391 if (PrintNMTStatistics) { 396 if (PrintNMTStatistics) {
392 if (MemTracker::is_on()) { 397 if (MemTracker::is_on()) {