23 */ 24 25 #ifndef SHARE_VM_GC_SHARED_GCTRACETIME_HPP 26 #define SHARE_VM_GC_SHARED_GCTRACETIME_HPP 27 28 #include "gc/shared/gcTrace.hpp" 29 #include "memory/allocation.hpp" 30 #include "prims/jni_md.h" 31 #include "utilities/ticks.hpp" 32 33 class GCTimer; 34 35 class GCTraceTimeImpl VALUE_OBJ_CLASS_SPEC { 36 const char* _title; 37 bool _doit; 38 bool _print_cr; 39 GCTimer* _timer; 40 Ticks _start_counter; 41 42 public: 43 GCTraceTimeImpl(const char* title, bool doit, bool print_cr, GCTimer* timer, GCId gc_id); 44 ~GCTraceTimeImpl(); 45 }; 46 47 class GCTraceTime : public StackObj { 48 GCTraceTimeImpl _gc_trace_time_impl; 49 50 public: 51 GCTraceTime(const char* title, bool doit, bool print_cr, GCTimer* timer, GCId gc_id) : 52 _gc_trace_time_impl(title, doit, print_cr, timer, gc_id) {}; 53 }; 54 55 #endif // SHARE_VM_GC_SHARED_GCTRACETIME_HPP | 23 */ 24 25 #ifndef SHARE_VM_GC_SHARED_GCTRACETIME_HPP 26 #define SHARE_VM_GC_SHARED_GCTRACETIME_HPP 27 28 #include "gc/shared/gcTrace.hpp" 29 #include "memory/allocation.hpp" 30 #include "prims/jni_md.h" 31 #include "utilities/ticks.hpp" 32 33 class GCTimer; 34 35 class GCTraceTimeImpl VALUE_OBJ_CLASS_SPEC { 36 const char* _title; 37 bool _doit; 38 bool _print_cr; 39 GCTimer* _timer; 40 Ticks _start_counter; 41 42 public: 43 GCTraceTimeImpl(const char* title, bool doit, bool print_cr, GCTimer* timer); 44 ~GCTraceTimeImpl(); 45 }; 46 47 class GCTraceTime : public StackObj { 48 GCTraceTimeImpl _gc_trace_time_impl; 49 50 public: 51 GCTraceTime(const char* title, bool doit, bool print_cr, GCTimer* timer) : 52 _gc_trace_time_impl(title, doit, print_cr, timer) {}; 53 }; 54 55 #endif // SHARE_VM_GC_SHARED_GCTRACETIME_HPP |