< prev index next >

src/hotspot/share/jfr/periodic/jfrPeriodic.cpp

Print this page




  44 #include "jfr/utilities/jfrTime.hpp"
  45 #include "jfrfiles/jfrPeriodic.hpp"
  46 #include "logging/log.hpp"
  47 #include "memory/heapInspection.hpp"
  48 #include "memory/resourceArea.hpp"
  49 #include "oops/oop.inline.hpp"
  50 #include "runtime/arguments.hpp"
  51 #include "runtime/flags/jvmFlag.hpp"
  52 #include "runtime/globals.hpp"
  53 #include "runtime/os.hpp"
  54 #include "runtime/os_perf.hpp"
  55 #include "runtime/thread.inline.hpp"
  56 #include "runtime/threadSMR.hpp"
  57 #include "runtime/sweeper.hpp"
  58 #include "runtime/vmThread.hpp"
  59 #include "services/classLoadingService.hpp"
  60 #include "services/management.hpp"
  61 #include "services/threadService.hpp"
  62 #include "utilities/exceptions.hpp"
  63 #include "utilities/globalDefinitions.hpp"
  64 


  65 /**
  66  *  JfrPeriodic class
  67  *  Implementation of declarations in
  68  *  xsl generated traceRequestables.hpp
  69  */
  70 #define TRACE_REQUEST_FUNC(id)    void JfrPeriodicEventSet::request##id(void)
  71 
  72 TRACE_REQUEST_FUNC(JVMInformation) {
  73   ResourceMark rm;
  74   EventJVMInformation event;
  75   event.set_jvmName(VM_Version::vm_name());
  76   event.set_jvmVersion(VM_Version::internal_vm_info_string());
  77   event.set_javaArguments(Arguments::java_command());
  78   event.set_jvmArguments(Arguments::jvm_args());
  79   event.set_jvmFlags(Arguments::jvm_flags());
  80   event.set_jvmStartTime(Management::vm_init_done_time());
  81   event.set_pid(os::current_process_id());
  82   event.commit();
  83  }
  84 


 565   event.set_reservedTopAddress((u8)CodeCache::high_bound());
 566   event.commit();
 567 }
 568 
 569 TRACE_REQUEST_FUNC(CodeSweeperStatistics) {
 570   EventCodeSweeperStatistics event;
 571   event.set_sweepCount(NMethodSweeper::traversal_count());
 572   event.set_methodReclaimedCount(NMethodSweeper::total_nof_methods_reclaimed());
 573   event.set_totalSweepTime(NMethodSweeper::total_time_sweeping());
 574   event.set_peakFractionTime(NMethodSweeper::peak_sweep_fraction_time());
 575   event.set_peakSweepTime(NMethodSweeper::peak_sweep_time());
 576   event.commit();
 577 }
 578 
 579 TRACE_REQUEST_FUNC(CodeSweeperConfiguration) {
 580   EventCodeSweeperConfiguration event;
 581   event.set_sweeperEnabled(MethodFlushing);
 582   event.set_flushingEnabled(UseCodeCacheFlushing);
 583   event.commit();
 584 }













  44 #include "jfr/utilities/jfrTime.hpp"
  45 #include "jfrfiles/jfrPeriodic.hpp"
  46 #include "logging/log.hpp"
  47 #include "memory/heapInspection.hpp"
  48 #include "memory/resourceArea.hpp"
  49 #include "oops/oop.inline.hpp"
  50 #include "runtime/arguments.hpp"
  51 #include "runtime/flags/jvmFlag.hpp"
  52 #include "runtime/globals.hpp"
  53 #include "runtime/os.hpp"
  54 #include "runtime/os_perf.hpp"
  55 #include "runtime/thread.inline.hpp"
  56 #include "runtime/threadSMR.hpp"
  57 #include "runtime/sweeper.hpp"
  58 #include "runtime/vmThread.hpp"
  59 #include "services/classLoadingService.hpp"
  60 #include "services/management.hpp"
  61 #include "services/threadService.hpp"
  62 #include "utilities/exceptions.hpp"
  63 #include "utilities/globalDefinitions.hpp"
  64 #if INCLUDE_SHENANDOAHGC
  65 #include "gc/shenandoah/shenandoahJfrSupport.hpp"
  66 #endif
  67 /**
  68  *  JfrPeriodic class
  69  *  Implementation of declarations in
  70  *  xsl generated traceRequestables.hpp
  71  */
  72 #define TRACE_REQUEST_FUNC(id)    void JfrPeriodicEventSet::request##id(void)
  73 
  74 TRACE_REQUEST_FUNC(JVMInformation) {
  75   ResourceMark rm;
  76   EventJVMInformation event;
  77   event.set_jvmName(VM_Version::vm_name());
  78   event.set_jvmVersion(VM_Version::internal_vm_info_string());
  79   event.set_javaArguments(Arguments::java_command());
  80   event.set_jvmArguments(Arguments::jvm_args());
  81   event.set_jvmFlags(Arguments::jvm_flags());
  82   event.set_jvmStartTime(Management::vm_init_done_time());
  83   event.set_pid(os::current_process_id());
  84   event.commit();
  85  }
  86 


 567   event.set_reservedTopAddress((u8)CodeCache::high_bound());
 568   event.commit();
 569 }
 570 
 571 TRACE_REQUEST_FUNC(CodeSweeperStatistics) {
 572   EventCodeSweeperStatistics event;
 573   event.set_sweepCount(NMethodSweeper::traversal_count());
 574   event.set_methodReclaimedCount(NMethodSweeper::total_nof_methods_reclaimed());
 575   event.set_totalSweepTime(NMethodSweeper::total_time_sweeping());
 576   event.set_peakFractionTime(NMethodSweeper::peak_sweep_fraction_time());
 577   event.set_peakSweepTime(NMethodSweeper::peak_sweep_time());
 578   event.commit();
 579 }
 580 
 581 TRACE_REQUEST_FUNC(CodeSweeperConfiguration) {
 582   EventCodeSweeperConfiguration event;
 583   event.set_sweeperEnabled(MethodFlushing);
 584   event.set_flushingEnabled(UseCodeCacheFlushing);
 585   event.commit();
 586 }
 587 
 588 
 589 TRACE_REQUEST_FUNC(ShenandoahHeapRegionInformation) {
 590 #if INCLUDE_SHENANDOAHGC
 591   if (UseShenandoahGC) {
 592     VM_ShenandoahSendHeapRegionInfoEvents op;
 593     VMThread::execute(&op);
 594   }
 595 #endif
 596 }
 597 
< prev index next >