< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahMetrics.hpp

Print this page




  30 private:
  31   ShenandoahMetrics() {}
  32 
  33 public:
  34   static double internal_fragmentation();
  35   static double external_fragmentation();
  36 };
  37 
  38 class ShenandoahMetricsSnapshot : public StackObj {
  39 private:
  40   ShenandoahHeap* _heap;
  41   size_t _used_before, _used_after;
  42   double _if_before, _if_after;
  43   double _ef_before, _ef_after;
  44 
  45 public:
  46   ShenandoahMetricsSnapshot();
  47 
  48   void snap_before();
  49   void snap_after();

  50 
  51   bool is_good_progress();
  52 };
  53 
  54 #endif // SHARE_GC_SHENANDOAH_SHENANDOAHMETRICS_HPP


  30 private:
  31   ShenandoahMetrics() {}
  32 
  33 public:
  34   static double internal_fragmentation();
  35   static double external_fragmentation();
  36 };
  37 
  38 class ShenandoahMetricsSnapshot : public StackObj {
  39 private:
  40   ShenandoahHeap* _heap;
  41   size_t _used_before, _used_after;
  42   double _if_before, _if_after;
  43   double _ef_before, _ef_after;
  44 
  45 public:
  46   ShenandoahMetricsSnapshot();
  47 
  48   void snap_before();
  49   void snap_after();
  50   void print();
  51 
  52   bool is_good_progress(const char *label);
  53 };
  54 
  55 #endif // SHARE_GC_SHENANDOAH_SHENANDOAHMETRICS_HPP
< prev index next >