#ifndef TRACEFILES_TRACEEVENTCLASSES_HPP #define TRACEFILES_TRACEEVENTCLASSES_HPP // On purpose outside the INCLUDE_TRACE // Some parts of traceEvent.hpp are used outside of // INCLUDE_TRACE #include "memory/resourceArea.hpp" #include "tracefiles/traceTypes.hpp" #include "trace/traceEvent.hpp" #include "utilities/macros.hpp" #if INCLUDE_TRACE #include "trace/traceStream.hpp" #include "utilities/ostream.hpp" #else class TraceEvent { public: TraceEvent() {} void set_starttime(jlong time) const {} void set_endtime(jlong time) const {} bool should_commit() const { return false; } void commit() const {} }; #endif #endif struct TraceStruct { private: public: void writeStruct(TraceStream& ts) { } }; struct TraceStruct { public: }; { public: }; { public: static const bool hasThread = ; static const bool hasStackTrace = ; static const bool isInstant = ; static const bool isRequestable = ; static const TraceEventId eventId = ; private: void writeEventContent(void) { TraceStream ts(*tty); ts.print(": ["); ts.print("]\n"); } public: bool should_write(void) { return true; } void writeEvent(void) { ResourceMark rm; if (UseLockedTracing) { ttyLocker lock; writeEventContent(); } else { writeEventContent(); } } }; #if INCLUDE_TRACE #else #endif #if INCLUDE_TRACE #else #endif ts.print(", "); ts.print(", ");