diff 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
line wrap: on
line diff
--- a/src/share/vm/trace/traceBackend.hpp	Mon Apr 15 08:17:40 2013 -0700
+++ b/src/share/vm/trace/traceBackend.hpp	Mon Apr 15 11:38:46 2013 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -32,7 +32,7 @@
 #include "runtime/os.hpp"
 
 class TraceBackend {
- public:
+public:
   static bool enabled(TraceEventId id) {
     return EnableTracing;
   }
@@ -48,5 +48,9 @@
 
 typedef TraceBackend Tracing;
 
+#else /* INCLUDE_TRACE */
+
+#include "trace/noTraceBackend.hpp"
+
 #endif /* INCLUDE_TRACE */
 #endif /* SHARE_VM_TRACE_TRACEBACKEND_HPP */