Print this page
rev 6868 : 8059216: Make PrintGCApplicationStoppedTime print information about stopping threads
Reviewed-by: dholmes, brutisso

Split Split Close
Expand all
Collapse all
          --- old/src/share/vm/services/runtimeService.hpp
          +++ new/src/share/vm/services/runtimeService.hpp
↓ open down ↓ 32 lines elided ↑ open up ↑
  33   33    static PerfCounter* _sync_time_ticks;        // Accumulated time spent getting to safepoints
  34   34    static PerfCounter* _total_safepoints;
  35   35    static PerfCounter* _safepoint_time_ticks;   // Accumulated time at safepoints
  36   36    static PerfCounter* _application_time_ticks; // Accumulated time not at safepoints
  37   37    static PerfCounter* _thread_interrupt_signaled_count;// os:interrupt thr_kill
  38   38    static PerfCounter* _interrupted_before_count;  // _INTERRUPTIBLE OS_INTRPT
  39   39    static PerfCounter* _interrupted_during_count;  // _INTERRUPTIBLE OS_INTRPT
  40   40  
  41   41    static TimeStamp _safepoint_timer;
  42   42    static TimeStamp _app_timer;
       43 +  static double _last_safepoint_sync_time_sec;
  43   44  
  44   45  public:
  45   46    static void init();
  46   47  
  47   48    static jlong safepoint_sync_time_ms();
  48   49    static jlong safepoint_count();
  49   50    static jlong safepoint_time_ms();
  50   51    static jlong application_time_ms();
  51   52  
  52   53    static double last_safepoint_time_sec()      { return _safepoint_timer.seconds(); }
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX