comparison src/share/vm/trace/traceBackend.hpp @ 4609:f438a35cc903

8012210: Make TracingTime available when INCLUDE_TRACE = 0 Reviewed-by: dholmes, sla
author rbackman
date Mon, 15 Apr 2013 11:38:46 +0200
parents bb74dc5ddf07
children 04f81958a8e2
comparison
equal deleted inserted replaced
0:157740b746ee 1:80b4137c21c9
1 /* 1 /*
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
30 #include "tracefiles/traceEventIds.hpp" 30 #include "tracefiles/traceEventIds.hpp"
31 #include "runtime/globals.hpp" 31 #include "runtime/globals.hpp"
32 #include "runtime/os.hpp" 32 #include "runtime/os.hpp"
33 33
34 class TraceBackend { 34 class TraceBackend {
35 public: 35 public:
36 static bool enabled(TraceEventId id) { 36 static bool enabled(TraceEventId id) {
37 return EnableTracing; 37 return EnableTracing;
38 } 38 }
39 39
40 static TracingTime time() { 40 static TracingTime time() {
46 } 46 }
47 }; 47 };
48 48
49 typedef TraceBackend Tracing; 49 typedef TraceBackend Tracing;
50 50
51 #else /* INCLUDE_TRACE */
52
53 #include "trace/noTraceBackend.hpp"
54
51 #endif /* INCLUDE_TRACE */ 55 #endif /* INCLUDE_TRACE */
52 #endif /* SHARE_VM_TRACE_TRACEBACKEND_HPP */ 56 #endif /* SHARE_VM_TRACE_TRACEBACKEND_HPP */