< 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 


 559   event.set_reservedTopAddress((u8)CodeCache::high_bound());
 560   event.commit();
 561 }
 562 
 563 TRACE_REQUEST_FUNC(CodeSweeperStatistics) {
 564   EventCodeSweeperStatistics event;
 565   event.set_sweepCount(NMethodSweeper::traversal_count());
 566   event.set_methodReclaimedCount(NMethodSweeper::total_nof_methods_reclaimed());
 567   event.set_totalSweepTime(NMethodSweeper::total_time_sweeping());
 568   event.set_peakFractionTime(NMethodSweeper::peak_sweep_fraction_time());
 569   event.set_peakSweepTime(NMethodSweeper::peak_sweep_time());
 570   event.commit();
 571 }
 572 
 573 TRACE_REQUEST_FUNC(CodeSweeperConfiguration) {
 574   EventCodeSweeperConfiguration event;
 575   event.set_sweeperEnabled(MethodFlushing);
 576   event.set_flushingEnabled(UseCodeCacheFlushing);
 577   event.commit();
 578 }













  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 


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