annotate src/share/vm/trace/noTraceBackend.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
children 12494ffb721b
rev   line source
rbackman@4609 1 /*
rbackman@4609 2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
rbackman@4609 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
rbackman@4609 4 *
rbackman@4609 5 * This code is free software; you can redistribute it and/or modify it
rbackman@4609 6 * under the terms of the GNU General Public License version 2 only, as
rbackman@4609 7 * published by the Free Software Foundation.
rbackman@4609 8 *
rbackman@4609 9 * This code is distributed in the hope that it will be useful, but WITHOUT
rbackman@4609 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
rbackman@4609 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
rbackman@4609 12 * version 2 for more details (a copy is included in the LICENSE file that
rbackman@4609 13 * accompanied this code).
rbackman@4609 14 *
rbackman@4609 15 * You should have received a copy of the GNU General Public License version
rbackman@4609 16 * 2 along with this work; if not, write to the Free Software Foundation,
rbackman@4609 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
rbackman@4609 18 *
rbackman@4609 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
rbackman@4609 20 * or visit www.oracle.com if you need additional information or have any
rbackman@4609 21 * questions.
rbackman@4609 22 *
rbackman@4609 23 */
rbackman@4609 24 #ifndef SHARE_VM_TRACE_NOTRACEBACKEND_HPP
rbackman@4609 25 #define SHARE_VM_TRACE_NOTRACEBACKEND_HPP
rbackman@4609 26
rbackman@4609 27 #include "prims/jni.h"
rbackman@4609 28
rbackman@4609 29 typedef jlong TracingTime;
rbackman@4609 30 typedef jlong RelativeTracingTime;
rbackman@4609 31
rbackman@4609 32 class NoTraceBackend {
rbackman@4609 33 public:
rbackman@4609 34 static TracingTime time() {
rbackman@4609 35 return 0;
rbackman@4609 36 }
rbackman@4609 37 };
rbackman@4609 38
rbackman@4609 39 typedef NoTraceBackend Tracing;
rbackman@4609 40
rbackman@4609 41 #endif
rbackman@4609 42
rbackman@4609 43