< prev index next >

src/hotspot/share/runtime/java.cpp

Print this page
rev 49260 : [mq]: 8198691.patch


 300   }
 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   if (PrintMethodFlushingStatistics) {
 320     NMethodSweeper::print();








 321   }
 322 
 323   if (PrintCodeCache2) {
 324     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
 325     CodeCache::print_internals();
 326   }
 327 
 328   if (PrintVtableStats) {
 329     klassVtable::print_statistics();
 330     klassItable::print_statistics();
 331   }
 332   if (VerifyOops) {
 333     tty->print_cr("+VerifyOops count: %d", StubRoutines::verify_oop_count());
 334   }
 335 
 336   print_bytecode_count();
 337   if (PrintMallocStatistics) {
 338     tty->print("allocation stats: ");
 339     alloc_stats.print();
 340     tty->cr();


 363 }
 364 
 365 #else // PRODUCT MODE STATISTICS
 366 
 367 void print_statistics() {
 368 
 369   if (PrintMethodData) {
 370     print_method_profiling_data();
 371   }
 372 
 373   if (CITime) {
 374     CompileBroker::print_times();
 375   }
 376 
 377   if (PrintCodeCache) {
 378     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
 379     CodeCache::print();
 380   }
 381 
 382   if (PrintMethodFlushingStatistics) {
 383     NMethodSweeper::print();








 384   }
 385 
 386 #ifdef COMPILER2
 387   if (PrintPreciseBiasedLockingStatistics || PrintPreciseRTMLockingStatistics) {
 388     OptoRuntime::print_named_counters();
 389   }
 390 #endif
 391   if (PrintBiasedLockingStatistics) {
 392     BiasedLocking::print_counters();
 393   }
 394 
 395   // Native memory tracking data
 396   if (PrintNMTStatistics) {
 397     MemTracker::final_report(tty);
 398   }
 399 
 400   if (LogTouchedMethods && PrintTouchedMethodsAtExit) {
 401     Method::print_touched_methods(tty);
 402   }
 403 




 300   }
 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   if (PrintMethodFlushingStatistics) {
 320     NMethodSweeper::print(tty);
 321   }
 322 
 323   // CodeHeap State Analytics.
 324   LogTarget(Trace, codecache) lt;
 325   if (lt.is_enabled()) {
 326 //     LogStream ls(lt);
 327 //     CompileBroker::print_heapinfo(&ls, "all", "4096"); // details
 328     CompileBroker::print_heapinfo(NULL, "all", "4096"); // details
 329   }
 330 
 331   if (PrintCodeCache2) {
 332     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
 333     CodeCache::print_internals();
 334   }
 335 
 336   if (PrintVtableStats) {
 337     klassVtable::print_statistics();
 338     klassItable::print_statistics();
 339   }
 340   if (VerifyOops) {
 341     tty->print_cr("+VerifyOops count: %d", StubRoutines::verify_oop_count());
 342   }
 343 
 344   print_bytecode_count();
 345   if (PrintMallocStatistics) {
 346     tty->print("allocation stats: ");
 347     alloc_stats.print();
 348     tty->cr();


 371 }
 372 
 373 #else // PRODUCT MODE STATISTICS
 374 
 375 void print_statistics() {
 376 
 377   if (PrintMethodData) {
 378     print_method_profiling_data();
 379   }
 380 
 381   if (CITime) {
 382     CompileBroker::print_times();
 383   }
 384 
 385   if (PrintCodeCache) {
 386     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
 387     CodeCache::print();
 388   }
 389 
 390   if (PrintMethodFlushingStatistics) {
 391     NMethodSweeper::print(tty);
 392   }
 393 
 394   // CodeHeap State Analytics.
 395   LogTarget(Trace, codecache) lt;
 396   if (lt.is_enabled()) {
 397 //     LogStream ls(lt);
 398 //     CompileBroker::print_heapinfo(&ls, "all", "4096"); // details
 399     CompileBroker::print_heapinfo(NULL, "all", "4096"); // details
 400   }
 401 
 402 #ifdef COMPILER2
 403   if (PrintPreciseBiasedLockingStatistics || PrintPreciseRTMLockingStatistics) {
 404     OptoRuntime::print_named_counters();
 405   }
 406 #endif
 407   if (PrintBiasedLockingStatistics) {
 408     BiasedLocking::print_counters();
 409   }
 410 
 411   // Native memory tracking data
 412   if (PrintNMTStatistics) {
 413     MemTracker::final_report(tty);
 414   }
 415 
 416   if (LogTouchedMethods && PrintTouchedMethodsAtExit) {
 417     Method::print_touched_methods(tty);
 418   }
 419 


< prev index next >