comparison src/share/vm/gc_implementation/shared/gcTraceTime.hpp @ 13400:86e6d691f2e1

8028128: Add a type safe alternative for working with counter based data Reviewed-by: dholmes, egahlin
author mgronlun
date Sat, 23 Nov 2013 12:25:13 +0100
parents f2110083203d
children 0982ec23da03
comparison
equal deleted inserted replaced
13399:260ac69dc096 13400:86e6d691f2e1
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 };