src/hotspot/share/gc/z/zStat.hpp
changeset 59148 877c000fd688
parent 58704 8b16701b4636
equal deleted inserted replaced
59147:e735301d76b9 59148:877c000fd688
    23 
    23 
    24 #ifndef SHARE_GC_Z_ZSTAT_HPP
    24 #ifndef SHARE_GC_Z_ZSTAT_HPP
    25 #define SHARE_GC_Z_ZSTAT_HPP
    25 #define SHARE_GC_Z_ZSTAT_HPP
    26 
    26 
    27 #include "gc/shared/concurrentGCThread.hpp"
    27 #include "gc/shared/concurrentGCThread.hpp"
       
    28 #include "gc/shared/gcCause.hpp"
    28 #include "gc/shared/gcTimer.hpp"
    29 #include "gc/shared/gcTimer.hpp"
    29 #include "gc/z/zMetronome.hpp"
    30 #include "gc/z/zMetronome.hpp"
    30 #include "logging/logHandle.hpp"
    31 #include "logging/logHandle.hpp"
    31 #include "memory/allocation.hpp"
    32 #include "memory/allocation.hpp"
    32 #include "utilities/globalDefinitions.hpp"
    33 #include "utilities/globalDefinitions.hpp"
   363 //
   364 //
   364 // Stat cycle
   365 // Stat cycle
   365 //
   366 //
   366 class ZStatCycle : public AllStatic {
   367 class ZStatCycle : public AllStatic {
   367 private:
   368 private:
   368   static uint64_t  _ncycles;
   369   static uint64_t  _nwarmup_cycles;
   369   static Ticks     _start_of_last;
   370   static Ticks     _start_of_last;
   370   static Ticks     _end_of_last;
   371   static Ticks     _end_of_last;
   371   static NumberSeq _normalized_duration;
   372   static NumberSeq _normalized_duration;
   372 
   373 
   373 public:
   374 public:
   374   static void at_start();
   375   static void at_start();
   375   static void at_end(double boost_factor);
   376   static void at_end(GCCause::Cause cause, double boost_factor);
   376 
   377 
   377   static bool is_first();
       
   378   static bool is_warm();
   378   static bool is_warm();
   379   static uint64_t ncycles();
   379   static uint64_t nwarmup_cycles();
       
   380 
       
   381   static bool is_normalized_duration_trustable();
   380   static const AbsSeq& normalized_duration();
   382   static const AbsSeq& normalized_duration();
       
   383 
   381   static double time_since_last();
   384   static double time_since_last();
   382 };
   385 };
   383 
   386 
   384 //
   387 //
   385 // Stat load
   388 // Stat load