30
31 #include "runtime/globals.hpp"
32 #include "runtime/os.hpp"
33 #include "trace/traceTime.hpp"
34 #include "tracefiles/traceEventIds.hpp"
35
36 class TraceBackend {
37 public:
38 static bool enabled(void) {
39 return EnableTracing;
40 }
41
42 static bool is_event_enabled(TraceEventId id) {
43 return enabled();
44 }
45
46 static TracingTime time() {
47 return os::elapsed_counter();
48 }
49
50 static TracingTime time_adjustment(jlong time) {
51 return time;
52 }
53
54 static void on_unloading_classes(void) {
55 }
56 };
57
58 class TraceThreadData {
59 public:
60 TraceThreadData() {}
61 };
62
63 typedef TraceBackend Tracing;
64
65 #else /* INCLUDE_TRACE */
66
67 #include "trace/noTraceBackend.hpp"
68
69 #endif /* INCLUDE_TRACE */
70 #endif /* SHARE_VM_TRACE_TRACEBACKEND_HPP */
|
30
31 #include "runtime/globals.hpp"
32 #include "runtime/os.hpp"
33 #include "trace/traceTime.hpp"
34 #include "tracefiles/traceEventIds.hpp"
35
36 class TraceBackend {
37 public:
38 static bool enabled(void) {
39 return EnableTracing;
40 }
41
42 static bool is_event_enabled(TraceEventId id) {
43 return enabled();
44 }
45
46 static TracingTime time() {
47 return os::elapsed_counter();
48 }
49
50 static void on_unloading_classes(void) {
51 }
52 };
53
54 class TraceThreadData {
55 public:
56 TraceThreadData() {}
57 };
58
59 typedef TraceBackend Tracing;
60
61 #else /* INCLUDE_TRACE */
62
63 #include "trace/noTraceBackend.hpp"
64
65 #endif /* INCLUDE_TRACE */
66 #endif /* SHARE_VM_TRACE_TRACEBACKEND_HPP */
|