< prev index next >
src/hotspot/share/trace/traceEvent.hpp
Print this page
rev 49619 : JEP 328 : Flight Recorder open source preview
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2018, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -23,11 +23,11 @@
*/
#ifndef SHARE_VM_TRACE_TRACEEVENT_HPP
#define SHARE_VM_TRACE_TRACEEVENT_HPP
-#include "trace/traceTime.hpp"
+#include "jfr/utilities/jfrTraceTime.hpp"
#include "utilities/macros.hpp"
enum EventStartTime {
UNTIMED,
TIMED
@@ -45,16 +45,15 @@
protected:
jlong _startTime;
jlong _endTime;
DEBUG_ONLY(bool _committed;)
-
- void set_starttime(const TracingTime& time) {
+ void set_starttime(const JfrTraceTime& time) {
_startTime = time;
}
- void set_endtime(const TracingTime& time) {
+ void set_endtime(const JfrTraceTime& time) {
_endTime = time;
}
TraceEvent(EventStartTime timing=TIMED) :
_startTime(0),
@@ -69,11 +68,10 @@
if (TIMED == timing && !T::isInstant) {
static_cast<T*>(this)->set_starttime(Tracing::time());
}
}
}
-
public:
void set_starttime(const Ticks& time) {
_startTime = time.value();
}
< prev index next >