Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/shared/vmGCOperations.hpp @ 10405:f2110083203d
8005849: JEP 167: Event-Based JVM Tracing
Reviewed-by: acorn, coleenp, sla
Contributed-by: Karen Kinnear <karen.kinnear@oracle.com>, Bengt Rutisson <bengt.rutisson@oracle.com>, Calvin Cheung <calvin.cheung@oracle.com>, Erik Gahlin <erik.gahlin@oracle.com>, Erik Helin <erik.helin@oracle.com>, Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>, Keith McGuigan <keith.mcguigan@oracle.com>, Mattias Tobiasson <mattias.tobiasson@oracle.com>, Markus Gronlund <markus.gronlund@oracle.com>, Mikael Auno <mikael.auno@oracle.com>, Nils Eliasson <nils.eliasson@oracle.com>, Nils Loodin <nils.loodin@oracle.com>, Rickard Backman <rickard.backman@oracle.com>, Staffan Larsen <staffan.larsen@oracle.com>, Stefan Karlsson <stefan.karlsson@oracle.com>, Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
author | sla |
---|---|
date | Mon, 10 Jun 2013 11:30:51 +0200 |
parents | 16fb9f942703 |
children | 85c1ca43713f |
comparison
equal
deleted
inserted
replaced
10404:d0add7016434 | 10405:f2110083203d |
---|---|
127 | 127 |
128 class VM_GC_HeapInspection: public VM_GC_Operation { | 128 class VM_GC_HeapInspection: public VM_GC_Operation { |
129 private: | 129 private: |
130 outputStream* _out; | 130 outputStream* _out; |
131 bool _full_gc; | 131 bool _full_gc; |
132 bool _need_prologue; | |
133 bool _csv_format; // "comma separated values" format for spreadsheet. | 132 bool _csv_format; // "comma separated values" format for spreadsheet. |
134 bool _print_help; | 133 bool _print_help; |
135 bool _print_class_stats; | 134 bool _print_class_stats; |
136 const char* _columns; | 135 const char* _columns; |
137 public: | 136 public: |
138 VM_GC_HeapInspection(outputStream* out, bool request_full_gc, | 137 VM_GC_HeapInspection(outputStream* out, bool request_full_gc) : |
139 bool need_prologue) : | |
140 VM_GC_Operation(0 /* total collections, dummy, ignored */, | 138 VM_GC_Operation(0 /* total collections, dummy, ignored */, |
141 GCCause::_heap_inspection /* GC Cause */, | 139 GCCause::_heap_inspection /* GC Cause */, |
142 0 /* total full collections, dummy, ignored */, | 140 0 /* total full collections, dummy, ignored */, |
143 request_full_gc) { | 141 request_full_gc) { |
144 _out = out; | 142 _out = out; |
145 _full_gc = request_full_gc; | 143 _full_gc = request_full_gc; |
146 _need_prologue = need_prologue; | |
147 _csv_format = false; | 144 _csv_format = false; |
148 _print_help = false; | 145 _print_help = false; |
149 _print_class_stats = false; | 146 _print_class_stats = false; |
150 _columns = NULL; | 147 _columns = NULL; |
151 } | 148 } |
157 virtual void doit(); | 154 virtual void doit(); |
158 void set_csv_format(bool value) {_csv_format = value;} | 155 void set_csv_format(bool value) {_csv_format = value;} |
159 void set_print_help(bool value) {_print_help = value;} | 156 void set_print_help(bool value) {_print_help = value;} |
160 void set_print_class_stats(bool value) {_print_class_stats = value;} | 157 void set_print_class_stats(bool value) {_print_class_stats = value;} |
161 void set_columns(const char* value) {_columns = value;} | 158 void set_columns(const char* value) {_columns = value;} |
159 protected: | |
160 bool collect(); | |
162 }; | 161 }; |
163 | 162 |
164 | 163 |
165 class VM_GenCollectForAllocation: public VM_GC_Operation { | 164 class VM_GenCollectForAllocation: public VM_GC_Operation { |
166 private: | 165 private: |