#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 "tracefiles/traceTypes.hpp" #include "trace/traceEvent.hpp" #include "utilities/macros.hpp" #include "utilities/ticks.hpp" #if INCLUDE_TRACE #include "trace/traceStream.hpp" #include "utilities/ostream.hpp" #else // !INCLUDE_TRACE class TraceEvent { public: TraceEvent() {} void set_starttime(const Ticks& time) {} void set_endtime(const Ticks& time) {} bool should_commit() const { return false; } void commit() const {} }; #endif // INCLUDE_TRACE #endif // TRACEFILES_TRACEEVENTCLASSES_HPP 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) { if (UseLockedTracing) { ttyLocker lock; writeEventContent(); } else { writeEventContent(); } } }; #if INCLUDE_TRACE #else #endif #if INCLUDE_TRACE #else #endif ts.print(", "); ts.print(", ");