301 if (ProfilerCheckIntervals) {
302 PeriodicTask::print_intervals();
303 }
304 if (PrintSymbolTableSizeHistogram) {
305 SymbolTable::print_histogram();
306 }
307 if (CountBytecodes || TraceBytecodes || StopInterpreterAt) {
308 BytecodeCounter::print();
309 }
310 if (PrintBytecodePairHistogram) {
311 BytecodePairHistogram::print();
312 }
313
314 if (PrintCodeCache) {
315 MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
316 CodeCache::print();
317 }
318
319 // CodeHeap State Analytics.
320 // Does also call NMethodSweeper::print(tty)
321 LogTarget(Trace, codecache) lt;
322 if (lt.is_enabled()) {
323 CompileBroker::print_heapinfo(NULL, "all", "4096"); // details
324 } else if (PrintMethodFlushingStatistics) {
325 NMethodSweeper::print(tty);
326 }
327
328 if (PrintCodeCache2) {
329 MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
330 CodeCache::print_internals();
331 }
332
333 if (PrintVtableStats) {
334 klassVtable::print_statistics();
335 klassItable::print_statistics();
336 }
337 if (VerifyOops && Verbose) {
338 tty->print_cr("+VerifyOops count: %d", StubRoutines::verify_oop_count());
339 }
340
341 print_bytecode_count();
342 if (PrintMallocStatistics) {
370
371 #else // PRODUCT MODE STATISTICS
372
373 void print_statistics() {
374
375 if (PrintMethodData) {
376 print_method_profiling_data();
377 }
378
379 if (CITime) {
380 CompileBroker::print_times();
381 }
382
383 if (PrintCodeCache) {
384 MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
385 CodeCache::print();
386 }
387
388 // CodeHeap State Analytics.
389 // Does also call NMethodSweeper::print(tty)
390 LogTarget(Trace, codecache) lt;
391 if (lt.is_enabled()) {
392 CompileBroker::print_heapinfo(NULL, "all", "4096"); // details
393 } else if (PrintMethodFlushingStatistics) {
394 NMethodSweeper::print(tty);
395 }
396
397 #ifdef COMPILER2
398 if (PrintPreciseBiasedLockingStatistics || PrintPreciseRTMLockingStatistics) {
399 OptoRuntime::print_named_counters();
400 }
401 #endif
402 if (PrintBiasedLockingStatistics) {
403 BiasedLocking::print_counters();
404 }
405
406 // Native memory tracking data
407 if (PrintNMTStatistics) {
408 MemTracker::final_report(tty);
409 }
410
411 if (LogTouchedMethods && PrintTouchedMethodsAtExit) {
|
301 if (ProfilerCheckIntervals) {
302 PeriodicTask::print_intervals();
303 }
304 if (PrintSymbolTableSizeHistogram) {
305 SymbolTable::print_histogram();
306 }
307 if (CountBytecodes || TraceBytecodes || StopInterpreterAt) {
308 BytecodeCounter::print();
309 }
310 if (PrintBytecodePairHistogram) {
311 BytecodePairHistogram::print();
312 }
313
314 if (PrintCodeCache) {
315 MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
316 CodeCache::print();
317 }
318
319 // CodeHeap State Analytics.
320 // Does also call NMethodSweeper::print(tty)
321 if (PrintCodeHeapAnalysis) {
322 CompileBroker::print_heapinfo(NULL, "all", "4096"); // details
323 } else if (PrintMethodFlushingStatistics) {
324 NMethodSweeper::print(tty);
325 }
326
327 if (PrintCodeCache2) {
328 MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
329 CodeCache::print_internals();
330 }
331
332 if (PrintVtableStats) {
333 klassVtable::print_statistics();
334 klassItable::print_statistics();
335 }
336 if (VerifyOops && Verbose) {
337 tty->print_cr("+VerifyOops count: %d", StubRoutines::verify_oop_count());
338 }
339
340 print_bytecode_count();
341 if (PrintMallocStatistics) {
369
370 #else // PRODUCT MODE STATISTICS
371
372 void print_statistics() {
373
374 if (PrintMethodData) {
375 print_method_profiling_data();
376 }
377
378 if (CITime) {
379 CompileBroker::print_times();
380 }
381
382 if (PrintCodeCache) {
383 MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
384 CodeCache::print();
385 }
386
387 // CodeHeap State Analytics.
388 // Does also call NMethodSweeper::print(tty)
389 if (PrintCodeHeapAnalysis) {
390 CompileBroker::print_heapinfo(NULL, "all", "4096"); // details
391 } else if (PrintMethodFlushingStatistics) {
392 NMethodSweeper::print(tty);
393 }
394
395 #ifdef COMPILER2
396 if (PrintPreciseBiasedLockingStatistics || PrintPreciseRTMLockingStatistics) {
397 OptoRuntime::print_named_counters();
398 }
399 #endif
400 if (PrintBiasedLockingStatistics) {
401 BiasedLocking::print_counters();
402 }
403
404 // Native memory tracking data
405 if (PrintNMTStatistics) {
406 MemTracker::final_report(tty);
407 }
408
409 if (LogTouchedMethods && PrintTouchedMethodsAtExit) {
|