comparison src/share/vm/utilities/ostream.hpp @ 20190:0982ec23da03

8043607: Add a GC id as a log decoration similar to PrintGCTimeStamps Reviewed-by: jwilhelm, ehelin, tschatzl
author brutisso
date Thu, 19 Jun 2014 13:31:14 +0200
parents 78bbf4d43a14
children 6e0cb14ce59b
comparison
equal deleted inserted replaced
20189:5d855d021755 20190:0982ec23da03
26 #define SHARE_VM_UTILITIES_OSTREAM_HPP 26 #define SHARE_VM_UTILITIES_OSTREAM_HPP
27 27
28 #include "memory/allocation.hpp" 28 #include "memory/allocation.hpp"
29 #include "runtime/timer.hpp" 29 #include "runtime/timer.hpp"
30 30
31 class GCId;
31 DEBUG_ONLY(class ResourceMark;) 32 DEBUG_ONLY(class ResourceMark;)
32 33
33 // Output streams for printing 34 // Output streams for printing
34 // 35 //
35 // Printing guidelines: 36 // Printing guidelines:
105 void date_stamp(bool guard, const char* prefix, const char* suffix); 106 void date_stamp(bool guard, const char* prefix, const char* suffix);
106 // A simplified call that includes a suffix of ": " 107 // A simplified call that includes a suffix of ": "
107 void date_stamp(bool guard) { 108 void date_stamp(bool guard) {
108 date_stamp(guard, "", ": "); 109 date_stamp(guard, "", ": ");
109 } 110 }
111 void gclog_stamp(const GCId& gc_id);
110 112
111 // portable printing of 64 bit integers 113 // portable printing of 64 bit integers
112 void print_jlong(jlong value); 114 void print_jlong(jlong value);
113 void print_julong(julong value); 115 void print_julong(julong value);
114 116