equal
deleted
inserted
replaced
24 |
24 |
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_GCTRACETIME_HPP |
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_GCTRACETIME_HPP |
26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_GCTRACETIME_HPP |
26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_GCTRACETIME_HPP |
27 |
27 |
28 #include "prims/jni_md.h" |
28 #include "prims/jni_md.h" |
|
29 #include "utilities/ticks.hpp" |
29 |
30 |
30 class GCTimer; |
31 class GCTimer; |
31 |
32 |
32 class GCTraceTime { |
33 class GCTraceTime { |
33 const char* _title; |
34 const char* _title; |
34 bool _doit; |
35 bool _doit; |
35 bool _print_cr; |
36 bool _print_cr; |
36 GCTimer* _timer; |
37 GCTimer* _timer; |
37 jlong _start_counter; |
38 Ticks _start_counter; |
38 |
39 |
39 public: |
40 public: |
40 GCTraceTime(const char* title, bool doit, bool print_cr, GCTimer* timer); |
41 GCTraceTime(const char* title, bool doit, bool print_cr, GCTimer* timer); |
41 ~GCTraceTime(); |
42 ~GCTraceTime(); |
42 }; |
43 }; |