< prev index next >

src/hotspot/share/runtime/java.cpp

Print this page
rev 54096 : 8214526: Change CodeHeap State Analytics control from UL to Print*
Reviewed-by: coleenp, kvn, stuefe, thartmann


 300   if (ProfilerCheckIntervals) {
 301     PeriodicTask::print_intervals();
 302   }
 303   if (PrintSymbolTableSizeHistogram) {
 304     SymbolTable::print_histogram();
 305   }
 306   if (CountBytecodes || TraceBytecodes || StopInterpreterAt) {
 307     BytecodeCounter::print();
 308   }
 309   if (PrintBytecodePairHistogram) {
 310     BytecodePairHistogram::print();
 311   }
 312 
 313   if (PrintCodeCache) {
 314     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
 315     CodeCache::print();
 316   }
 317 
 318   // CodeHeap State Analytics.
 319   // Does also call NMethodSweeper::print(tty)
 320   LogTarget(Trace, codecache) lt;
 321   if (lt.is_enabled()) {
 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) {


 368 
 369 #else // PRODUCT MODE STATISTICS
 370 
 371 void print_statistics() {
 372 
 373   if (PrintMethodData) {
 374     print_method_profiling_data();
 375   }
 376 
 377   if (CITime) {
 378     CompileBroker::print_times();
 379   }
 380 
 381   if (PrintCodeCache) {
 382     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
 383     CodeCache::print();
 384   }
 385 
 386   // CodeHeap State Analytics.
 387   // Does also call NMethodSweeper::print(tty)
 388   LogTarget(Trace, codecache) lt;
 389   if (lt.is_enabled()) {
 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) {




 300   if (ProfilerCheckIntervals) {
 301     PeriodicTask::print_intervals();
 302   }
 303   if (PrintSymbolTableSizeHistogram) {
 304     SymbolTable::print_histogram();
 305   }
 306   if (CountBytecodes || TraceBytecodes || StopInterpreterAt) {
 307     BytecodeCounter::print();
 308   }
 309   if (PrintBytecodePairHistogram) {
 310     BytecodePairHistogram::print();
 311   }
 312 
 313   if (PrintCodeCache) {
 314     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
 315     CodeCache::print();
 316   }
 317 
 318   // CodeHeap State Analytics.
 319   // Does also call NMethodSweeper::print(tty)
 320   if (PrintCodeHeapAnalytics) {

 321     CompileBroker::print_heapinfo(NULL, "all", 4096); // details
 322   } else if (PrintMethodFlushingStatistics) {
 323     NMethodSweeper::print(tty);
 324   }
 325 
 326   if (PrintCodeCache2) {
 327     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
 328     CodeCache::print_internals();
 329   }
 330 
 331   if (PrintVtableStats) {
 332     klassVtable::print_statistics();
 333     klassItable::print_statistics();
 334   }
 335   if (VerifyOops && Verbose) {
 336     tty->print_cr("+VerifyOops count: %d", StubRoutines::verify_oop_count());
 337   }
 338 
 339   print_bytecode_count();
 340   if (PrintMallocStatistics) {


 367 
 368 #else // PRODUCT MODE STATISTICS
 369 
 370 void print_statistics() {
 371 
 372   if (PrintMethodData) {
 373     print_method_profiling_data();
 374   }
 375 
 376   if (CITime) {
 377     CompileBroker::print_times();
 378   }
 379 
 380   if (PrintCodeCache) {
 381     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
 382     CodeCache::print();
 383   }
 384 
 385   // CodeHeap State Analytics.
 386   // Does also call NMethodSweeper::print(tty)
 387   if (PrintCodeHeapAnalytics) {

 388     CompileBroker::print_heapinfo(NULL, "all", 4096); // details
 389   } else if (PrintMethodFlushingStatistics) {
 390     NMethodSweeper::print(tty);
 391   }
 392 
 393 #ifdef COMPILER2
 394   if (PrintPreciseBiasedLockingStatistics || PrintPreciseRTMLockingStatistics) {
 395     OptoRuntime::print_named_counters();
 396   }
 397 #endif
 398   if (PrintBiasedLockingStatistics) {
 399     BiasedLocking::print_counters();
 400   }
 401 
 402   // Native memory tracking data
 403   if (PrintNMTStatistics) {
 404     MemTracker::final_report(tty);
 405   }
 406 
 407   if (LogTouchedMethods && PrintTouchedMethodsAtExit) {


< prev index next >