src/share/vm/utilities/events.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff src/share/vm/utilities/events.hpp

src/share/vm/utilities/events.hpp

Print this page

        

*** 126,136 **** void print(outputStream* out, T& e); void print(outputStream* out, EventRecord<T>& e) { out->print("Event: %.3f ", e.timestamp); if (e.thread != NULL) { ! out->print("Thread " INTPTR_FORMAT " ", e.thread); } print(out, e.data); } }; --- 126,136 ---- void print(outputStream* out, T& e); void print(outputStream* out, EventRecord<T>& e) { out->print("Event: %.3f ", e.timestamp); if (e.thread != NULL) { ! out->print("Thread " INTPTR_FORMAT " ", p2i(e.thread)); } print(out, e.data); } };
*** 157,167 **** _records[index].thread = thread; _records[index].timestamp = timestamp; _records[index].data.printv(format, ap); } ! void log(Thread* thread, const char* format, ...) { va_list ap; va_start(ap, format); logv(thread, format, ap); va_end(ap); } --- 157,167 ---- _records[index].thread = thread; _records[index].timestamp = timestamp; _records[index].data.printv(format, ap); } ! void log(Thread* thread, const char* format, ...) ATTRIBUTE_PRINTF(3, 4) { va_list ap; va_start(ap, format); logv(thread, format, ap); va_end(ap); }
*** 191,212 **** // Dump all events to the tty static void print(); // Logs a generic message with timestamp and format as printf. ! static void log(Thread* thread, const char* format, ...); // Log exception related message ! static void log_exception(Thread* thread, const char* format, ...); ! static void log_deopt_message(Thread* thread, const char* format, ...); // Register default loggers static void init(); }; - inline void Events::log(Thread* thread, const char* format, ...) { if (LogEvents) { va_list ap; va_start(ap, format); _messages->logv(thread, format, ap); --- 191,211 ---- // Dump all events to the tty static void print(); // Logs a generic message with timestamp and format as printf. ! static void log(Thread* thread, const char* format, ...) ATTRIBUTE_PRINTF(2, 3); // Log exception related message ! static void log_exception(Thread* thread, const char* format, ...) ATTRIBUTE_PRINTF(2, 3); ! static void log_deopt_message(Thread* thread, const char* format, ...) ATTRIBUTE_PRINTF(2, 3); // Register default loggers static void init(); }; inline void Events::log(Thread* thread, const char* format, ...) { if (LogEvents) { va_list ap; va_start(ap, format); _messages->logv(thread, format, ap);
*** 281,291 **** class EventMark : public StackObj { StringLogMessage _buffer; public: // log a begin event, format as printf ! EventMark(const char* format, ...); // log an end event ~EventMark(); }; #endif // SHARE_VM_UTILITIES_EVENTS_HPP --- 280,290 ---- class EventMark : public StackObj { StringLogMessage _buffer; public: // log a begin event, format as printf ! EventMark(const char* format, ...) ATTRIBUTE_PRINTF(2, 3); // log an end event ~EventMark(); }; #endif // SHARE_VM_UTILITIES_EVENTS_HPP
src/share/vm/utilities/events.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File