< prev index next >

src/hotspot/share/runtime/java.cpp

Print this page




  40 #include "jvmci/jvmci.hpp"
  41 #endif
  42 #include "logging/log.hpp"
  43 #include "logging/logStream.hpp"
  44 #include "memory/oopFactory.hpp"
  45 #include "memory/resourceArea.hpp"
  46 #include "memory/dynamicArchive.hpp"
  47 #include "memory/universe.hpp"
  48 #include "oops/constantPool.hpp"
  49 #include "oops/generateOopMap.hpp"
  50 #include "oops/instanceKlass.hpp"
  51 #include "oops/instanceOop.hpp"
  52 #include "oops/method.hpp"
  53 #include "oops/objArrayOop.hpp"
  54 #include "oops/oop.inline.hpp"
  55 #include "oops/symbol.hpp"
  56 #include "prims/jvmtiExport.hpp"
  57 #include "runtime/arguments.hpp"
  58 #include "runtime/biasedLocking.hpp"
  59 #include "runtime/compilationPolicy.hpp"

  60 #include "runtime/deoptimization.hpp"
  61 #include "runtime/flags/flagSetting.hpp"
  62 #include "runtime/handles.inline.hpp"
  63 #include "runtime/init.hpp"
  64 #include "runtime/interfaceSupport.inline.hpp"
  65 #include "runtime/java.hpp"
  66 #include "runtime/memprofiler.hpp"
  67 #include "runtime/sharedRuntime.hpp"
  68 #include "runtime/statSampler.hpp"
  69 #include "runtime/sweeper.hpp"
  70 #include "runtime/task.hpp"
  71 #include "runtime/thread.inline.hpp"
  72 #include "runtime/timer.hpp"
  73 #include "runtime/vmOperations.hpp"
  74 #include "services/memTracker.hpp"
  75 #include "utilities/dtrace.hpp"
  76 #include "utilities/globalDefinitions.hpp"
  77 #include "utilities/histogram.hpp"
  78 #include "utilities/macros.hpp"
  79 #include "utilities/vmError.hpp"


 336 
 337   if (LogTouchedMethods && PrintTouchedMethodsAtExit) {
 338     Method::print_touched_methods(tty);
 339   }
 340 
 341   if (PrintBiasedLockingStatistics) {
 342     BiasedLocking::print_counters();
 343   }
 344 
 345   // Native memory tracking data
 346   if (PrintNMTStatistics) {
 347     MemTracker::final_report(tty);
 348   }
 349 
 350   ThreadsSMRSupport::log_statistics();
 351 }
 352 
 353 #else // PRODUCT MODE STATISTICS
 354 
 355 void print_statistics() {




 356 
 357   if (PrintMethodData) {
 358     print_method_profiling_data();
 359   }
 360 
 361   if (CITime) {
 362     CompileBroker::print_times();
 363   }
 364 
 365   if (PrintCodeCache) {
 366     MutexLocker mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
 367     CodeCache::print();
 368   }
 369 
 370   // CodeHeap State Analytics.
 371   // Does also call NMethodSweeper::print(tty)
 372   if (PrintCodeHeapAnalytics) {
 373     CompileBroker::print_heapinfo(NULL, "all", 4096); // details
 374   } else if (PrintMethodFlushingStatistics) {
 375     NMethodSweeper::print(tty);




  40 #include "jvmci/jvmci.hpp"
  41 #endif
  42 #include "logging/log.hpp"
  43 #include "logging/logStream.hpp"
  44 #include "memory/oopFactory.hpp"
  45 #include "memory/resourceArea.hpp"
  46 #include "memory/dynamicArchive.hpp"
  47 #include "memory/universe.hpp"
  48 #include "oops/constantPool.hpp"
  49 #include "oops/generateOopMap.hpp"
  50 #include "oops/instanceKlass.hpp"
  51 #include "oops/instanceOop.hpp"
  52 #include "oops/method.hpp"
  53 #include "oops/objArrayOop.hpp"
  54 #include "oops/oop.inline.hpp"
  55 #include "oops/symbol.hpp"
  56 #include "prims/jvmtiExport.hpp"
  57 #include "runtime/arguments.hpp"
  58 #include "runtime/biasedLocking.hpp"
  59 #include "runtime/compilationPolicy.hpp"
  60 #include "runtime/continuation.hpp"
  61 #include "runtime/deoptimization.hpp"
  62 #include "runtime/flags/flagSetting.hpp"
  63 #include "runtime/handles.inline.hpp"
  64 #include "runtime/init.hpp"
  65 #include "runtime/interfaceSupport.inline.hpp"
  66 #include "runtime/java.hpp"
  67 #include "runtime/memprofiler.hpp"
  68 #include "runtime/sharedRuntime.hpp"
  69 #include "runtime/statSampler.hpp"
  70 #include "runtime/sweeper.hpp"
  71 #include "runtime/task.hpp"
  72 #include "runtime/thread.inline.hpp"
  73 #include "runtime/timer.hpp"
  74 #include "runtime/vmOperations.hpp"
  75 #include "services/memTracker.hpp"
  76 #include "utilities/dtrace.hpp"
  77 #include "utilities/globalDefinitions.hpp"
  78 #include "utilities/histogram.hpp"
  79 #include "utilities/macros.hpp"
  80 #include "utilities/vmError.hpp"


 337 
 338   if (LogTouchedMethods && PrintTouchedMethodsAtExit) {
 339     Method::print_touched_methods(tty);
 340   }
 341 
 342   if (PrintBiasedLockingStatistics) {
 343     BiasedLocking::print_counters();
 344   }
 345 
 346   // Native memory tracking data
 347   if (PrintNMTStatistics) {
 348     MemTracker::final_report(tty);
 349   }
 350 
 351   ThreadsSMRSupport::log_statistics();
 352 }
 353 
 354 #else // PRODUCT MODE STATISTICS
 355 
 356 void print_statistics() {
 357 
 358   if (UseNewCode2) {
 359     Continuations::print_statistics();
 360   }
 361 
 362   if (PrintMethodData) {
 363     print_method_profiling_data();
 364   }
 365 
 366   if (CITime) {
 367     CompileBroker::print_times();
 368   }
 369 
 370   if (PrintCodeCache) {
 371     MutexLocker mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
 372     CodeCache::print();
 373   }
 374 
 375   // CodeHeap State Analytics.
 376   // Does also call NMethodSweeper::print(tty)
 377   if (PrintCodeHeapAnalytics) {
 378     CompileBroker::print_heapinfo(NULL, "all", 4096); // details
 379   } else if (PrintMethodFlushingStatistics) {
 380     NMethodSweeper::print(tty);


< prev index next >