author | rprotacio |
Mon, 23 Nov 2015 16:16:46 -0500 | |
changeset 34262 | 43560e879d6d |
parent 32614 | b7b2407bc7e5 |
child 34195 | 89011d12ebd3 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
32614
b7b2407bc7e5
8049304: race between VM_Exit and _sync_FutileWakeups->inc()
dcubed
parents:
27680
diff
changeset
|
2 |
* Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved. |
1 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
3795
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
3795
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
3795
diff
changeset
|
21 |
* questions. |
1 | 22 |
* |
23 |
*/ |
|
24 |
||
7397 | 25 |
#ifndef SHARE_VM_RUNTIME_PERFDATA_HPP |
26 |
#define SHARE_VM_RUNTIME_PERFDATA_HPP |
|
27 |
||
28 |
#include "memory/allocation.inline.hpp" |
|
29 |
#include "runtime/perfMemory.hpp" |
|
30 |
#include "runtime/timer.hpp" |
|
31 |
#include "utilities/growableArray.hpp" |
|
32 |
||
1 | 33 |
/* jvmstat global and subsystem counter name space - enumeration value |
34 |
* serve as an index into the PerfDataManager::_name_space[] array |
|
35 |
* containing the corresponding name space string. Only the top level |
|
36 |
* subsystem name spaces are represented here. |
|
37 |
*/ |
|
38 |
enum CounterNS { |
|
39 |
// top level name spaces |
|
40 |
JAVA_NS, |
|
41 |
COM_NS, |
|
42 |
SUN_NS, |
|
43 |
// subsystem name spaces |
|
44 |
JAVA_GC, // Garbage Collection name spaces |
|
45 |
COM_GC, |
|
46 |
SUN_GC, |
|
47 |
JAVA_CI, // Compiler name spaces |
|
48 |
COM_CI, |
|
49 |
SUN_CI, |
|
50 |
JAVA_CLS, // Class Loader name spaces |
|
51 |
COM_CLS, |
|
52 |
SUN_CLS, |
|
53 |
JAVA_RT, // Runtime name spaces |
|
54 |
COM_RT, |
|
55 |
SUN_RT, |
|
56 |
JAVA_OS, // Operating System name spaces |
|
57 |
COM_OS, |
|
58 |
SUN_OS, |
|
59 |
JAVA_THREADS, // Threads System name spaces |
|
60 |
COM_THREADS, |
|
61 |
SUN_THREADS, |
|
62 |
JAVA_PROPERTY, // Java Property name spaces |
|
63 |
COM_PROPERTY, |
|
64 |
SUN_PROPERTY, |
|
65 |
NULL_NS, |
|
66 |
COUNTERNS_LAST = NULL_NS |
|
67 |
}; |
|
68 |
||
69 |
/* |
|
70 |
* Classes to support access to production performance data |
|
71 |
* |
|
72 |
* The PerfData class structure is provided for creation, access, and update |
|
73 |
* of performance data (a.k.a. instrumentation) in a specific memory region |
|
74 |
* which is possibly accessible as shared memory. Although not explicitly |
|
75 |
* prevented from doing so, developers should not use the values returned |
|
76 |
* by accessor methods to make algorithmic decisions as they are potentially |
|
77 |
* extracted from a shared memory region. Although any shared memory region |
|
78 |
* created is with appropriate access restrictions, allowing read-write access |
|
79 |
* only to the principal that created the JVM, it is believed that a the |
|
80 |
* shared memory region facilitates an easier attack path than attacks |
|
81 |
* launched through mechanisms such as /proc. For this reason, it is |
|
82 |
* recommended that data returned by PerfData accessor methods be used |
|
83 |
* cautiously. |
|
84 |
* |
|
85 |
* There are three variability classifications of performance data |
|
86 |
* Constants - value is written to the PerfData memory once, on creation |
|
87 |
* Variables - value is modifiable, with no particular restrictions |
|
88 |
* Counters - value is monotonically changing (increasing or decreasing) |
|
89 |
* |
|
90 |
* The performance data items can also have various types. The class |
|
91 |
* hierarchy and the structure of the memory region are designed to |
|
92 |
* accommodate new types as they are needed. Types are specified in |
|
93 |
* terms of Java basic types, which accommodates client applications |
|
94 |
* written in the Java programming language. The class hierarchy is: |
|
95 |
* |
|
96 |
* - PerfData (Abstract) |
|
97 |
* - PerfLong (Abstract) |
|
98 |
* - PerfLongConstant (alias: PerfConstant) |
|
99 |
* - PerfLongVariant (Abstract) |
|
100 |
* - PerfLongVariable (alias: PerfVariable) |
|
101 |
* - PerfLongCounter (alias: PerfCounter) |
|
102 |
* |
|
103 |
* - PerfByteArray (Abstract) |
|
104 |
* - PerfString (Abstract) |
|
105 |
* - PerfStringVariable |
|
106 |
* - PerfStringConstant |
|
107 |
* |
|
108 |
* |
|
109 |
* As seen in the class hierarchy, the initially supported types are: |
|
110 |
* |
|
111 |
* Long - performance data holds a Java long type |
|
112 |
* ByteArray - performance data holds an array of Java bytes |
|
113 |
* used for holding C++ char arrays. |
|
114 |
* |
|
115 |
* The String type is derived from the ByteArray type. |
|
116 |
* |
|
117 |
* A PerfData subtype is not required to provide an implementation for |
|
118 |
* each variability classification. For example, the String type provides |
|
22551 | 119 |
* Variable and Constant variability classifications in the PerfStringVariable |
1 | 120 |
* and PerfStringConstant classes, but does not provide a counter type. |
121 |
* |
|
122 |
* Performance data are also described by a unit of measure. Units allow |
|
123 |
* client applications to make reasonable decisions on how to treat |
|
124 |
* performance data generically, preventing the need to hard-code the |
|
125 |
* specifics of a particular data item in client applications. The current |
|
126 |
* set of units are: |
|
127 |
* |
|
128 |
* None - the data has no units of measure |
|
129 |
* Bytes - data is measured in bytes |
|
130 |
* Ticks - data is measured in clock ticks |
|
131 |
* Events - data is measured in events. For example, |
|
132 |
* the number of garbage collection events or the |
|
133 |
* number of methods compiled. |
|
134 |
* String - data is not numerical. For example, |
|
135 |
* the java command line options |
|
136 |
* Hertz - data is a frequency |
|
137 |
* |
|
138 |
* The performance counters also provide a support attribute, indicating |
|
139 |
* the stability of the counter as a programmatic interface. The support |
|
140 |
* level is also implied by the name space in which the counter is created. |
|
141 |
* The counter name space support conventions follow the Java package, class, |
|
142 |
* and property support conventions: |
|
143 |
* |
|
144 |
* java.* - stable, supported interface |
|
145 |
* com.sun.* - unstable, supported interface |
|
146 |
* sun.* - unstable, unsupported interface |
|
147 |
* |
|
148 |
* In the above context, unstable is a measure of the interface support |
|
149 |
* level, not the implementation stability level. |
|
150 |
* |
|
151 |
* Currently, instances of PerfData subtypes are considered to have |
|
152 |
* a life time equal to that of the VM and are managed by the |
|
153 |
* PerfDataManager class. All constructors for the PerfData class and |
|
154 |
* its subtypes have protected constructors. Creation of PerfData |
|
155 |
* instances is performed by invoking various create methods on the |
|
156 |
* PerfDataManager class. Users should not attempt to delete these |
|
157 |
* instances as the PerfDataManager class expects to perform deletion |
|
158 |
* operations on exit of the VM. |
|
159 |
* |
|
160 |
* Examples: |
|
161 |
* |
|
162 |
* Creating performance counter that holds a monotonically increasing |
|
163 |
* long data value with units specified in U_Bytes in the "java.gc.*" |
|
164 |
* name space. |
|
165 |
* |
|
166 |
* PerfLongCounter* foo_counter; |
|
167 |
* |
|
168 |
* foo_counter = PerfDataManager::create_long_counter(JAVA_GC, "foo", |
|
169 |
* PerfData::U_Bytes, |
|
170 |
* optionalInitialValue, |
|
171 |
* CHECK); |
|
172 |
* foo_counter->inc(); |
|
173 |
* |
|
174 |
* Creating a performance counter that holds a variably change long |
|
22551 | 175 |
* data value with units specified in U_Bytes in the "com.sun.ci |
1 | 176 |
* name space. |
177 |
* |
|
22551 | 178 |
* PerfLongVariable* bar_variable; |
1 | 179 |
* bar_variable = PerfDataManager::create_long_variable(COM_CI, "bar", |
180 |
.* PerfData::U_Bytes, |
|
181 |
* optionalInitialValue, |
|
182 |
* CHECK); |
|
183 |
* |
|
184 |
* bar_variable->inc(); |
|
185 |
* bar_variable->set_value(0); |
|
186 |
* |
|
187 |
* Creating a performance counter that holds a constant string value in |
|
188 |
* the "sun.cls.*" name space. |
|
189 |
* |
|
190 |
* PerfDataManager::create_string_constant(SUN_CLS, "foo", string, CHECK); |
|
191 |
* |
|
192 |
* Although the create_string_constant() factory method returns a pointer |
|
193 |
* to the PerfStringConstant object, it can safely be ignored. Developers |
|
194 |
* are not encouraged to access the string constant's value via this |
|
195 |
* pointer at this time due to security concerns. |
|
196 |
* |
|
197 |
* Creating a performance counter in an arbitrary name space that holds a |
|
198 |
* value that is sampled by the StatSampler periodic task. |
|
199 |
* |
|
200 |
* PerfDataManager::create_counter("foo.sampled", PerfData::U_Events, |
|
201 |
* &my_jlong, CHECK); |
|
202 |
* |
|
203 |
* In this example, the PerfData pointer can be ignored as the caller |
|
204 |
* is relying on the StatSampler PeriodicTask to sample the given |
|
205 |
* address at a regular interval. The interval is defined by the |
|
22551 | 206 |
* PerfDataSamplingInterval global variable, and is applied on |
1 | 207 |
* a system wide basis, not on an per-counter basis. |
208 |
* |
|
209 |
* Creating a performance counter in an arbitrary name space that utilizes |
|
210 |
* a helper object to return a value to the StatSampler via the take_sample() |
|
211 |
* method. |
|
212 |
* |
|
213 |
* class MyTimeSampler : public PerfLongSampleHelper { |
|
214 |
* public: |
|
215 |
* jlong take_sample() { return os::elapsed_counter(); } |
|
216 |
* }; |
|
217 |
* |
|
218 |
* PerfDataManager::create_counter(SUN_RT, "helped", |
|
219 |
* PerfData::U_Ticks, |
|
220 |
* new MyTimeSampler(), CHECK); |
|
221 |
* |
|
222 |
* In this example, a subtype of PerfLongSampleHelper is instantiated |
|
223 |
* and its take_sample() method is overridden to perform whatever |
|
224 |
* operation is necessary to generate the data sample. This method |
|
225 |
* will be called by the StatSampler at a regular interval, defined |
|
226 |
* by the PerfDataSamplingInterval global variable. |
|
227 |
* |
|
228 |
* As before, PerfSampleHelper is an alias for PerfLongSampleHelper. |
|
229 |
* |
|
230 |
* For additional uses of PerfData subtypes, see the utility classes |
|
231 |
* PerfTraceTime and PerfTraceTimedEvent below. |
|
232 |
* |
|
233 |
* Always-on non-sampled counters can be created independent of |
|
234 |
* the UsePerfData flag. Counters will be created on the c-heap |
|
235 |
* if UsePerfData is false. |
|
236 |
* |
|
22551 | 237 |
* Until further notice, all PerfData objects should be created and |
1 | 238 |
* manipulated within a guarded block. The guard variable is |
239 |
* UsePerfData, a product flag set to true by default. This flag may |
|
240 |
* be removed from the product in the future. |
|
241 |
* |
|
242 |
*/ |
|
13195 | 243 |
class PerfData : public CHeapObj<mtInternal> { |
1 | 244 |
|
245 |
friend class StatSampler; // for access to protected void sample() |
|
246 |
friend class PerfDataManager; // for access to protected destructor |
|
247 |
||
248 |
public: |
|
249 |
||
250 |
// the Variability enum must be kept in synchronization with the |
|
251 |
// the com.sun.hotspot.perfdata.Variability class |
|
252 |
enum Variability { |
|
253 |
V_Constant = 1, |
|
254 |
V_Monotonic = 2, |
|
255 |
V_Variable = 3, |
|
256 |
V_last = V_Variable |
|
257 |
}; |
|
258 |
||
259 |
// the Units enum must be kept in synchronization with the |
|
260 |
// the com.sun.hotspot.perfdata.Units class |
|
261 |
enum Units { |
|
262 |
U_None = 1, |
|
263 |
U_Bytes = 2, |
|
264 |
U_Ticks = 3, |
|
265 |
U_Events = 4, |
|
266 |
U_String = 5, |
|
267 |
U_Hertz = 6, |
|
268 |
U_Last = U_Hertz |
|
269 |
}; |
|
270 |
||
271 |
// Miscellaneous flags |
|
272 |
enum Flags { |
|
273 |
F_None = 0x0, |
|
274 |
F_Supported = 0x1 // interface is supported - java.* and com.sun.* |
|
275 |
}; |
|
276 |
||
277 |
private: |
|
278 |
char* _name; |
|
279 |
Variability _v; |
|
280 |
Units _u; |
|
281 |
bool _on_c_heap; |
|
282 |
Flags _flags; |
|
283 |
||
284 |
PerfDataEntry* _pdep; |
|
285 |
||
286 |
protected: |
|
287 |
||
288 |
void *_valuep; |
|
289 |
||
290 |
PerfData(CounterNS ns, const char* name, Units u, Variability v); |
|
291 |
~PerfData(); |
|
292 |
||
293 |
// create the entry for the PerfData item in the PerfData memory region. |
|
294 |
// this region is maintained separately from the PerfData objects to |
|
295 |
// facilitate its use by external processes. |
|
296 |
void create_entry(BasicType dtype, size_t dsize, size_t dlen = 0); |
|
297 |
||
298 |
// sample the data item given at creation time and write its value |
|
299 |
// into the its corresponding PerfMemory location. |
|
300 |
virtual void sample() = 0; |
|
301 |
||
302 |
public: |
|
303 |
||
304 |
// returns a boolean indicating the validity of this object. |
|
305 |
// the object is valid if and only if memory in PerfMemory |
|
306 |
// region was successfully allocated. |
|
307 |
inline bool is_valid() { return _valuep != NULL; } |
|
308 |
||
309 |
// returns a boolean indicating whether the underlying object |
|
310 |
// was allocated in the PerfMemory region or on the C heap. |
|
311 |
inline bool is_on_c_heap() { return _on_c_heap; } |
|
312 |
||
313 |
// returns a pointer to a char* containing the name of the item. |
|
314 |
// The pointer returned is the pointer to a copy of the name |
|
315 |
// passed to the constructor, not the pointer to the name in the |
|
316 |
// PerfData memory region. This redundancy is maintained for |
|
317 |
// security reasons as the PerfMemory region may be in shared |
|
318 |
// memory. |
|
319 |
const char* name() { return _name; } |
|
320 |
||
321 |
// returns the variability classification associated with this item |
|
322 |
Variability variability() { return _v; } |
|
323 |
||
324 |
// returns the units associated with this item. |
|
325 |
Units units() { return _u; } |
|
326 |
||
327 |
// returns the flags associated with this item. |
|
328 |
Flags flags() { return _flags; } |
|
329 |
||
330 |
// returns the address of the data portion of the item in the |
|
331 |
// PerfData memory region. |
|
332 |
inline void* get_address() { return _valuep; } |
|
333 |
||
334 |
// returns the value of the data portion of the item in the |
|
335 |
// PerfData memory region formatted as a string. |
|
336 |
virtual int format(char* cp, int length) = 0; |
|
337 |
}; |
|
338 |
||
339 |
/* |
|
340 |
* PerfLongSampleHelper, and its alias PerfSamplerHelper, is a base class |
|
341 |
* for helper classes that rely upon the StatSampler periodic task to |
|
342 |
* invoke the take_sample() method and write the value returned to its |
|
343 |
* appropriate location in the PerfData memory region. |
|
344 |
*/ |
|
13195 | 345 |
class PerfLongSampleHelper : public CHeapObj<mtInternal> { |
1 | 346 |
public: |
347 |
virtual jlong take_sample() = 0; |
|
348 |
}; |
|
349 |
||
350 |
typedef PerfLongSampleHelper PerfSampleHelper; |
|
351 |
||
352 |
||
353 |
/* |
|
354 |
* PerfLong is the base class for the various Long PerfData subtypes. |
|
355 |
* it contains implementation details that are common among its derived |
|
356 |
* types. |
|
357 |
*/ |
|
358 |
class PerfLong : public PerfData { |
|
359 |
||
360 |
protected: |
|
361 |
||
362 |
PerfLong(CounterNS ns, const char* namep, Units u, Variability v); |
|
363 |
||
364 |
public: |
|
365 |
int format(char* buffer, int length); |
|
366 |
||
367 |
// returns the value of the data portion of the item in the |
|
368 |
// PerfData memory region. |
|
369 |
inline jlong get_value() { return *(jlong*)_valuep; } |
|
370 |
}; |
|
371 |
||
372 |
/* |
|
373 |
* The PerfLongConstant class, and its alias PerfConstant, implement |
|
374 |
* a PerfData subtype that holds a jlong data value that is set upon |
|
375 |
* creation of an instance of this class. This class provides no |
|
376 |
* methods for changing the data value stored in PerfData memory region. |
|
377 |
*/ |
|
378 |
class PerfLongConstant : public PerfLong { |
|
379 |
||
380 |
friend class PerfDataManager; // for access to protected constructor |
|
381 |
||
382 |
private: |
|
383 |
// hide sample() - no need to sample constants |
|
384 |
void sample() { } |
|
385 |
||
386 |
protected: |
|
387 |
||
388 |
PerfLongConstant(CounterNS ns, const char* namep, Units u, |
|
389 |
jlong initial_value=0) |
|
390 |
: PerfLong(ns, namep, u, V_Constant) { |
|
391 |
||
392 |
if (is_valid()) *(jlong*)_valuep = initial_value; |
|
393 |
} |
|
394 |
}; |
|
395 |
||
396 |
typedef PerfLongConstant PerfConstant; |
|
397 |
||
398 |
/* |
|
399 |
* The PerfLongVariant class, and its alias PerfVariant, implement |
|
400 |
* a PerfData subtype that holds a jlong data value that can be modified |
|
401 |
* in an unrestricted manner. This class provides the implementation details |
|
402 |
* for common functionality among its derived types. |
|
403 |
*/ |
|
404 |
class PerfLongVariant : public PerfLong { |
|
405 |
||
406 |
protected: |
|
407 |
jlong* _sampled; |
|
408 |
PerfLongSampleHelper* _sample_helper; |
|
409 |
||
410 |
PerfLongVariant(CounterNS ns, const char* namep, Units u, Variability v, |
|
411 |
jlong initial_value=0) |
|
412 |
: PerfLong(ns, namep, u, v) { |
|
413 |
if (is_valid()) *(jlong*)_valuep = initial_value; |
|
414 |
} |
|
415 |
||
416 |
PerfLongVariant(CounterNS ns, const char* namep, Units u, Variability v, |
|
417 |
jlong* sampled); |
|
418 |
||
419 |
PerfLongVariant(CounterNS ns, const char* namep, Units u, Variability v, |
|
420 |
PerfLongSampleHelper* sample_helper); |
|
421 |
||
422 |
void sample(); |
|
423 |
||
424 |
public: |
|
425 |
inline void inc() { (*(jlong*)_valuep)++; } |
|
426 |
inline void inc(jlong val) { (*(jlong*)_valuep) += val; } |
|
427 |
inline void add(jlong val) { (*(jlong*)_valuep) += val; } |
|
13728
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
13195
diff
changeset
|
428 |
void clear_sample_helper() { _sample_helper = NULL; } |
1 | 429 |
}; |
430 |
||
431 |
/* |
|
432 |
* The PerfLongCounter class, and its alias PerfCounter, implement |
|
433 |
* a PerfData subtype that holds a jlong data value that can (should) |
|
434 |
* be modified in a monotonic manner. The inc(jlong) and add(jlong) |
|
435 |
* methods can be passed negative values to implement a monotonically |
|
436 |
* decreasing value. However, we rely upon the programmer to honor |
|
437 |
* the notion that this counter always moves in the same direction - |
|
438 |
* either increasing or decreasing. |
|
439 |
*/ |
|
440 |
class PerfLongCounter : public PerfLongVariant { |
|
441 |
||
442 |
friend class PerfDataManager; // for access to protected constructor |
|
443 |
||
444 |
protected: |
|
445 |
||
446 |
PerfLongCounter(CounterNS ns, const char* namep, Units u, |
|
447 |
jlong initial_value=0) |
|
448 |
: PerfLongVariant(ns, namep, u, V_Monotonic, |
|
449 |
initial_value) { } |
|
450 |
||
451 |
PerfLongCounter(CounterNS ns, const char* namep, Units u, jlong* sampled) |
|
452 |
: PerfLongVariant(ns, namep, u, V_Monotonic, sampled) { } |
|
453 |
||
454 |
PerfLongCounter(CounterNS ns, const char* namep, Units u, |
|
455 |
PerfLongSampleHelper* sample_helper) |
|
456 |
: PerfLongVariant(ns, namep, u, V_Monotonic, |
|
457 |
sample_helper) { } |
|
458 |
}; |
|
459 |
||
460 |
typedef PerfLongCounter PerfCounter; |
|
461 |
||
462 |
/* |
|
463 |
* The PerfLongVariable class, and its alias PerfVariable, implement |
|
464 |
* a PerfData subtype that holds a jlong data value that can |
|
465 |
* be modified in an unrestricted manner. |
|
466 |
*/ |
|
467 |
class PerfLongVariable : public PerfLongVariant { |
|
468 |
||
469 |
friend class PerfDataManager; // for access to protected constructor |
|
470 |
||
471 |
protected: |
|
472 |
||
473 |
PerfLongVariable(CounterNS ns, const char* namep, Units u, |
|
474 |
jlong initial_value=0) |
|
475 |
: PerfLongVariant(ns, namep, u, V_Variable, |
|
476 |
initial_value) { } |
|
477 |
||
478 |
PerfLongVariable(CounterNS ns, const char* namep, Units u, jlong* sampled) |
|
479 |
: PerfLongVariant(ns, namep, u, V_Variable, sampled) { } |
|
480 |
||
481 |
PerfLongVariable(CounterNS ns, const char* namep, Units u, |
|
482 |
PerfLongSampleHelper* sample_helper) |
|
483 |
: PerfLongVariant(ns, namep, u, V_Variable, |
|
484 |
sample_helper) { } |
|
485 |
||
486 |
public: |
|
487 |
inline void set_value(jlong val) { (*(jlong*)_valuep) = val; } |
|
488 |
}; |
|
489 |
||
490 |
typedef PerfLongVariable PerfVariable; |
|
491 |
||
492 |
/* |
|
493 |
* The PerfByteArray provides a PerfData subtype that allows the creation |
|
494 |
* of a contiguous region of the PerfData memory region for storing a vector |
|
495 |
* of bytes. This class is currently intended to be a base class for |
|
496 |
* the PerfString class, and cannot be instantiated directly. |
|
497 |
*/ |
|
498 |
class PerfByteArray : public PerfData { |
|
499 |
||
500 |
protected: |
|
501 |
jint _length; |
|
502 |
||
503 |
PerfByteArray(CounterNS ns, const char* namep, Units u, Variability v, |
|
504 |
jint length); |
|
505 |
}; |
|
506 |
||
507 |
class PerfString : public PerfByteArray { |
|
508 |
||
509 |
protected: |
|
510 |
||
511 |
void set_string(const char* s2); |
|
512 |
||
513 |
PerfString(CounterNS ns, const char* namep, Variability v, jint length, |
|
514 |
const char* initial_value) |
|
515 |
: PerfByteArray(ns, namep, U_String, v, length) { |
|
516 |
if (is_valid()) set_string(initial_value); |
|
517 |
} |
|
518 |
||
519 |
public: |
|
520 |
||
521 |
int format(char* buffer, int length); |
|
522 |
}; |
|
523 |
||
524 |
/* |
|
525 |
* The PerfStringConstant class provides a PerfData sub class that |
|
526 |
* allows a null terminated string of single byte characters to be |
|
527 |
* stored in the PerfData memory region. |
|
528 |
*/ |
|
529 |
class PerfStringConstant : public PerfString { |
|
530 |
||
531 |
friend class PerfDataManager; // for access to protected constructor |
|
532 |
||
533 |
private: |
|
534 |
||
535 |
// hide sample() - no need to sample constants |
|
536 |
void sample() { } |
|
537 |
||
538 |
protected: |
|
539 |
||
540 |
// Restrict string constant lengths to be <= PerfMaxStringConstLength. |
|
541 |
// This prevents long string constants, as can occur with very |
|
542 |
// long classpaths or java command lines, from consuming too much |
|
543 |
// PerfData memory. |
|
544 |
PerfStringConstant(CounterNS ns, const char* namep, |
|
545 |
const char* initial_value); |
|
546 |
}; |
|
547 |
||
548 |
/* |
|
549 |
* The PerfStringVariable class provides a PerfData sub class that |
|
550 |
* allows a null terminated string of single byte character data |
|
551 |
* to be stored in PerfData memory region. The string value can be reset |
|
552 |
* after initialization. If the string value is >= max_length, then |
|
553 |
* it will be truncated to max_length characters. The copied string |
|
554 |
* is always null terminated. |
|
555 |
*/ |
|
556 |
class PerfStringVariable : public PerfString { |
|
557 |
||
558 |
friend class PerfDataManager; // for access to protected constructor |
|
559 |
||
560 |
protected: |
|
561 |
||
562 |
// sampling of string variables are not yet supported |
|
563 |
void sample() { } |
|
564 |
||
565 |
PerfStringVariable(CounterNS ns, const char* namep, jint max_length, |
|
566 |
const char* initial_value) |
|
567 |
: PerfString(ns, namep, V_Variable, max_length+1, |
|
568 |
initial_value) { } |
|
569 |
||
570 |
public: |
|
571 |
inline void set_value(const char* val) { set_string(val); } |
|
572 |
}; |
|
573 |
||
574 |
||
575 |
/* |
|
576 |
* The PerfDataList class is a container class for managing lists |
|
577 |
* of PerfData items. The intention of this class is to allow for |
|
578 |
* alternative implementations for management of list of PerfData |
|
579 |
* items without impacting the code that uses the lists. |
|
580 |
* |
|
581 |
* The initial implementation is based upon GrowableArray. Searches |
|
582 |
* on GrowableArray types is linear in nature and this may become |
|
583 |
* a performance issue for creation of PerfData items, particularly |
|
584 |
* from Java code where a test for existence is implemented as a |
|
585 |
* search over all existing PerfData items. |
|
586 |
* |
|
587 |
* The abstraction is not complete. A more general container class |
|
588 |
* would provide an Iterator abstraction that could be used to |
|
22551 | 589 |
* traverse the lists. This implementation still relies upon integer |
1 | 590 |
* iterators and the at(int index) method. However, the GrowableArray |
591 |
* is not directly visible outside this class and can be replaced by |
|
592 |
* some other implementation, as long as that implementation provides |
|
593 |
* a mechanism to iterate over the container by index. |
|
594 |
*/ |
|
13195 | 595 |
class PerfDataList : public CHeapObj<mtInternal> { |
1 | 596 |
|
597 |
private: |
|
598 |
||
599 |
// GrowableArray implementation |
|
600 |
typedef GrowableArray<PerfData*> PerfDataArray; |
|
601 |
||
602 |
PerfDataArray* _set; |
|
603 |
||
604 |
// method to search for a instrumentation object by name |
|
605 |
static bool by_name(void* name, PerfData* pd); |
|
606 |
||
607 |
protected: |
|
608 |
// we expose the implementation here to facilitate the clone |
|
609 |
// method. |
|
610 |
PerfDataArray* get_impl() { return _set; } |
|
611 |
||
612 |
public: |
|
613 |
||
614 |
// create a PerfDataList with the given initial length |
|
615 |
PerfDataList(int length); |
|
616 |
||
617 |
// create a PerfDataList as a shallow copy of the given PerfDataList |
|
618 |
PerfDataList(PerfDataList* p); |
|
619 |
||
620 |
~PerfDataList(); |
|
621 |
||
622 |
// return the PerfData item indicated by name, |
|
623 |
// or NULL if it doesn't exist. |
|
624 |
PerfData* find_by_name(const char* name); |
|
625 |
||
626 |
// return true if a PerfData item with the name specified in the |
|
627 |
// argument exists, otherwise return false. |
|
628 |
bool contains(const char* name) { return find_by_name(name) != NULL; } |
|
629 |
||
630 |
// return the number of PerfData items in this list |
|
631 |
int length() { return _set->length(); } |
|
632 |
||
633 |
// add a PerfData item to this list |
|
634 |
void append(PerfData *p) { _set->append(p); } |
|
635 |
||
636 |
// remove the given PerfData item from this list. When called |
|
637 |
// while iterating over the list, this method will result in a |
|
638 |
// change in the length of the container. The at(int index) |
|
639 |
// method is also impacted by this method as elements with an |
|
640 |
// index greater than the index of the element removed by this |
|
641 |
// method will be shifted down by one. |
|
642 |
void remove(PerfData *p) { _set->remove(p); } |
|
643 |
||
644 |
// create a new PerfDataList from this list. The new list is |
|
645 |
// a shallow copy of the original list and care should be taken |
|
646 |
// with respect to delete operations on the elements of the list |
|
647 |
// as the are likely in use by another copy of the list. |
|
648 |
PerfDataList* clone(); |
|
649 |
||
650 |
// for backward compatibility with GrowableArray - need to implement |
|
651 |
// some form of iterator to provide a cleaner abstraction for |
|
652 |
// iteration over the container. |
|
653 |
PerfData* at(int index) { return _set->at(index); } |
|
654 |
}; |
|
655 |
||
656 |
||
657 |
/* |
|
658 |
* The PerfDataManager class is responsible for creating PerfData |
|
659 |
* subtypes via a set a factory methods and for managing lists |
|
660 |
* of the various PerfData types. |
|
661 |
*/ |
|
662 |
class PerfDataManager : AllStatic { |
|
663 |
||
664 |
friend class StatSampler; // for access to protected PerfDataList methods |
|
665 |
||
666 |
private: |
|
667 |
static PerfDataList* _all; |
|
668 |
static PerfDataList* _sampled; |
|
669 |
static PerfDataList* _constants; |
|
670 |
static const char* _name_spaces[]; |
|
32614
b7b2407bc7e5
8049304: race between VM_Exit and _sync_FutileWakeups->inc()
dcubed
parents:
27680
diff
changeset
|
671 |
static volatile bool _has_PerfData; |
1 | 672 |
|
673 |
// add a PerfData item to the list(s) of know PerfData objects |
|
674 |
static void add_item(PerfData* p, bool sampled); |
|
675 |
||
676 |
protected: |
|
677 |
// return the list of all known PerfData items |
|
678 |
static PerfDataList* all(); |
|
679 |
static int count() { return _all->length(); } |
|
680 |
||
681 |
// return the list of all known PerfData items that are to be |
|
682 |
// sampled by the StatSampler. |
|
683 |
static PerfDataList* sampled(); |
|
684 |
static int sampled_count() { return _sampled->length(); } |
|
685 |
||
686 |
// return the list of all known PerfData items that have a |
|
687 |
// variability classification of type Constant |
|
688 |
static PerfDataList* constants(); |
|
689 |
static int constants_count() { return _constants->length(); } |
|
690 |
||
691 |
public: |
|
692 |
||
693 |
// method to check for the existence of a PerfData item with |
|
694 |
// the given name. |
|
695 |
static bool exists(const char* name) { return _all->contains(name); } |
|
696 |
||
18025 | 697 |
// method to search for a instrumentation object by name |
698 |
static PerfData* find_by_name(const char* name); |
|
699 |
||
1 | 700 |
// method to map a CounterNS enumeration to a namespace string |
701 |
static const char* ns_to_string(CounterNS ns) { |
|
702 |
return _name_spaces[ns]; |
|
703 |
} |
|
704 |
||
705 |
// methods to test the interface stability of a given counter namespace |
|
706 |
// |
|
707 |
static bool is_stable_supported(CounterNS ns) { |
|
708 |
return (ns != NULL_NS) && ((ns % 3) == JAVA_NS); |
|
709 |
} |
|
710 |
static bool is_unstable_supported(CounterNS ns) { |
|
711 |
return (ns != NULL_NS) && ((ns % 3) == COM_NS); |
|
712 |
} |
|
713 |
static bool is_unstable_unsupported(CounterNS ns) { |
|
714 |
return (ns == NULL_NS) || ((ns % 3) == SUN_NS); |
|
715 |
} |
|
716 |
||
717 |
// methods to test the interface stability of a given counter name |
|
718 |
// |
|
719 |
static bool is_stable_supported(const char* name) { |
|
720 |
const char* javadot = "java."; |
|
721 |
return strncmp(name, javadot, strlen(javadot)) == 0; |
|
722 |
} |
|
723 |
static bool is_unstable_supported(const char* name) { |
|
724 |
const char* comdot = "com.sun."; |
|
725 |
return strncmp(name, comdot, strlen(comdot)) == 0; |
|
726 |
} |
|
727 |
static bool is_unstable_unsupported(const char* name) { |
|
728 |
return !(is_stable_supported(name) && is_unstable_supported(name)); |
|
729 |
} |
|
730 |
||
731 |
// method to construct counter name strings in a given name space. |
|
732 |
// The string object is allocated from the Resource Area and calls |
|
733 |
// to this method must be made within a ResourceMark. |
|
734 |
// |
|
735 |
static char* counter_name(const char* name_space, const char* name); |
|
736 |
||
737 |
// method to construct name space strings in a given name space. |
|
738 |
// The string object is allocated from the Resource Area and calls |
|
739 |
// to this method must be made within a ResourceMark. |
|
740 |
// |
|
741 |
static char* name_space(const char* name_space, const char* sub_space) { |
|
742 |
return counter_name(name_space, sub_space); |
|
743 |
} |
|
744 |
||
745 |
// same as above, but appends the instance number to the name space |
|
746 |
// |
|
747 |
static char* name_space(const char* name_space, const char* sub_space, |
|
748 |
int instance); |
|
749 |
static char* name_space(const char* name_space, int instance); |
|
750 |
||
751 |
||
752 |
// these methods provide the general interface for creating |
|
753 |
// performance data resources. The types of performance data |
|
754 |
// resources can be extended by adding additional create<type> |
|
755 |
// methods. |
|
756 |
||
757 |
// Constant Types |
|
758 |
static PerfStringConstant* create_string_constant(CounterNS ns, |
|
759 |
const char* name, |
|
760 |
const char *s, TRAPS); |
|
761 |
||
762 |
static PerfLongConstant* create_long_constant(CounterNS ns, |
|
763 |
const char* name, |
|
764 |
PerfData::Units u, |
|
765 |
jlong val, TRAPS); |
|
766 |
||
767 |
||
768 |
// Variable Types |
|
769 |
static PerfStringVariable* create_string_variable(CounterNS ns, |
|
770 |
const char* name, |
|
771 |
int max_length, |
|
772 |
const char *s, TRAPS); |
|
773 |
||
774 |
static PerfStringVariable* create_string_variable(CounterNS ns, |
|
775 |
const char* name, |
|
776 |
const char *s, TRAPS) { |
|
27680
8ecc0871c18e
8064811: Use THREAD instead of CHECK_NULL in return statements
stefank
parents:
22551
diff
changeset
|
777 |
return create_string_variable(ns, name, 0, s, THREAD); |
1 | 778 |
}; |
779 |
||
780 |
static PerfLongVariable* create_long_variable(CounterNS ns, |
|
781 |
const char* name, |
|
782 |
PerfData::Units u, |
|
783 |
jlong ival, TRAPS); |
|
784 |
||
785 |
static PerfLongVariable* create_long_variable(CounterNS ns, |
|
786 |
const char* name, |
|
787 |
PerfData::Units u, TRAPS) { |
|
27680
8ecc0871c18e
8064811: Use THREAD instead of CHECK_NULL in return statements
stefank
parents:
22551
diff
changeset
|
788 |
return create_long_variable(ns, name, u, (jlong)0, THREAD); |
1 | 789 |
}; |
790 |
||
791 |
static PerfLongVariable* create_long_variable(CounterNS, const char* name, |
|
792 |
PerfData::Units u, |
|
793 |
jlong* sp, TRAPS); |
|
794 |
||
795 |
static PerfLongVariable* create_long_variable(CounterNS ns, |
|
796 |
const char* name, |
|
797 |
PerfData::Units u, |
|
798 |
PerfLongSampleHelper* sh, |
|
799 |
TRAPS); |
|
800 |
||
801 |
||
802 |
// Counter Types |
|
803 |
static PerfLongCounter* create_long_counter(CounterNS ns, const char* name, |
|
804 |
PerfData::Units u, |
|
805 |
jlong ival, TRAPS); |
|
806 |
||
807 |
static PerfLongCounter* create_long_counter(CounterNS ns, const char* name, |
|
808 |
PerfData::Units u, TRAPS) { |
|
27680
8ecc0871c18e
8064811: Use THREAD instead of CHECK_NULL in return statements
stefank
parents:
22551
diff
changeset
|
809 |
return create_long_counter(ns, name, u, (jlong)0, THREAD); |
1 | 810 |
}; |
811 |
||
812 |
static PerfLongCounter* create_long_counter(CounterNS ns, const char* name, |
|
813 |
PerfData::Units u, jlong* sp, |
|
814 |
TRAPS); |
|
815 |
||
816 |
static PerfLongCounter* create_long_counter(CounterNS ns, const char* name, |
|
817 |
PerfData::Units u, |
|
818 |
PerfLongSampleHelper* sh, |
|
819 |
TRAPS); |
|
820 |
||
821 |
||
822 |
// these creation methods are provided for ease of use. These allow |
|
823 |
// Long performance data types to be created with a shorthand syntax. |
|
824 |
||
825 |
static PerfConstant* create_constant(CounterNS ns, const char* name, |
|
826 |
PerfData::Units u, jlong val, TRAPS) { |
|
27680
8ecc0871c18e
8064811: Use THREAD instead of CHECK_NULL in return statements
stefank
parents:
22551
diff
changeset
|
827 |
return create_long_constant(ns, name, u, val, THREAD); |
1 | 828 |
} |
829 |
||
830 |
static PerfVariable* create_variable(CounterNS ns, const char* name, |
|
831 |
PerfData::Units u, jlong ival, TRAPS) { |
|
27680
8ecc0871c18e
8064811: Use THREAD instead of CHECK_NULL in return statements
stefank
parents:
22551
diff
changeset
|
832 |
return create_long_variable(ns, name, u, ival, THREAD); |
1 | 833 |
} |
834 |
||
835 |
static PerfVariable* create_variable(CounterNS ns, const char* name, |
|
836 |
PerfData::Units u, TRAPS) { |
|
27680
8ecc0871c18e
8064811: Use THREAD instead of CHECK_NULL in return statements
stefank
parents:
22551
diff
changeset
|
837 |
return create_long_variable(ns, name, u, (jlong)0, THREAD); |
1 | 838 |
} |
839 |
||
840 |
static PerfVariable* create_variable(CounterNS ns, const char* name, |
|
841 |
PerfData::Units u, jlong* sp, TRAPS) { |
|
27680
8ecc0871c18e
8064811: Use THREAD instead of CHECK_NULL in return statements
stefank
parents:
22551
diff
changeset
|
842 |
return create_long_variable(ns, name, u, sp, THREAD); |
1 | 843 |
} |
844 |
||
845 |
static PerfVariable* create_variable(CounterNS ns, const char* name, |
|
846 |
PerfData::Units u, |
|
847 |
PerfSampleHelper* sh, TRAPS) { |
|
27680
8ecc0871c18e
8064811: Use THREAD instead of CHECK_NULL in return statements
stefank
parents:
22551
diff
changeset
|
848 |
return create_long_variable(ns, name, u, sh, THREAD); |
1 | 849 |
} |
850 |
||
851 |
static PerfCounter* create_counter(CounterNS ns, const char* name, |
|
852 |
PerfData::Units u, jlong ival, TRAPS) { |
|
27680
8ecc0871c18e
8064811: Use THREAD instead of CHECK_NULL in return statements
stefank
parents:
22551
diff
changeset
|
853 |
return create_long_counter(ns, name, u, ival, THREAD); |
1 | 854 |
} |
855 |
||
856 |
static PerfCounter* create_counter(CounterNS ns, const char* name, |
|
857 |
PerfData::Units u, TRAPS) { |
|
27680
8ecc0871c18e
8064811: Use THREAD instead of CHECK_NULL in return statements
stefank
parents:
22551
diff
changeset
|
858 |
return create_long_counter(ns, name, u, (jlong)0, THREAD); |
1 | 859 |
} |
860 |
||
861 |
static PerfCounter* create_counter(CounterNS ns, const char* name, |
|
862 |
PerfData::Units u, jlong* sp, TRAPS) { |
|
27680
8ecc0871c18e
8064811: Use THREAD instead of CHECK_NULL in return statements
stefank
parents:
22551
diff
changeset
|
863 |
return create_long_counter(ns, name, u, sp, THREAD); |
1 | 864 |
} |
865 |
||
866 |
static PerfCounter* create_counter(CounterNS ns, const char* name, |
|
867 |
PerfData::Units u, |
|
868 |
PerfSampleHelper* sh, TRAPS) { |
|
27680
8ecc0871c18e
8064811: Use THREAD instead of CHECK_NULL in return statements
stefank
parents:
22551
diff
changeset
|
869 |
return create_long_counter(ns, name, u, sh, THREAD); |
1 | 870 |
} |
871 |
||
872 |
static void destroy(); |
|
32614
b7b2407bc7e5
8049304: race between VM_Exit and _sync_FutileWakeups->inc()
dcubed
parents:
27680
diff
changeset
|
873 |
static bool has_PerfData() { return _has_PerfData; } |
1 | 874 |
}; |
875 |
||
876 |
// Useful macros to create the performance counters |
|
877 |
#define NEWPERFTICKCOUNTER(counter, counter_ns, counter_name) \ |
|
878 |
{counter = PerfDataManager::create_counter(counter_ns, counter_name, \ |
|
879 |
PerfData::U_Ticks,CHECK);} |
|
880 |
||
881 |
#define NEWPERFEVENTCOUNTER(counter, counter_ns, counter_name) \ |
|
882 |
{counter = PerfDataManager::create_counter(counter_ns, counter_name, \ |
|
883 |
PerfData::U_Events,CHECK);} |
|
884 |
||
3575
224791e7ecab
6857194: Add hotspot perf counters to aid class loading performance measurement
mchung
parents:
1
diff
changeset
|
885 |
#define NEWPERFBYTECOUNTER(counter, counter_ns, counter_name) \ |
224791e7ecab
6857194: Add hotspot perf counters to aid class loading performance measurement
mchung
parents:
1
diff
changeset
|
886 |
{counter = PerfDataManager::create_counter(counter_ns, counter_name, \ |
224791e7ecab
6857194: Add hotspot perf counters to aid class loading performance measurement
mchung
parents:
1
diff
changeset
|
887 |
PerfData::U_Bytes,CHECK);} |
224791e7ecab
6857194: Add hotspot perf counters to aid class loading performance measurement
mchung
parents:
1
diff
changeset
|
888 |
|
1 | 889 |
// Utility Classes |
890 |
||
891 |
/* |
|
892 |
* this class will administer a PerfCounter used as a time accumulator |
|
893 |
* for a basic block much like the TraceTime class. |
|
894 |
* |
|
895 |
* Example: |
|
896 |
* |
|
897 |
* static PerfCounter* my_time_counter = PerfDataManager::create_counter("my.time.counter", PerfData::U_Ticks, 0LL, CHECK); |
|
898 |
* |
|
899 |
* { |
|
900 |
* PerfTraceTime ptt(my_time_counter); |
|
901 |
* // perform the operation you want to measure |
|
902 |
* } |
|
903 |
* |
|
904 |
* Note: use of this class does not need to occur within a guarded |
|
905 |
* block. The UsePerfData guard is used with the implementation |
|
906 |
* of this class. |
|
907 |
*/ |
|
908 |
class PerfTraceTime : public StackObj { |
|
909 |
||
910 |
protected: |
|
911 |
elapsedTimer _t; |
|
912 |
PerfLongCounter* _timerp; |
|
913 |
// pointer to thread-local or global recursion counter variable |
|
914 |
int* _recursion_counter; |
|
915 |
||
916 |
public: |
|
917 |
inline PerfTraceTime(PerfLongCounter* timerp) : _timerp(timerp), _recursion_counter(NULL) { |
|
918 |
if (!UsePerfData) return; |
|
919 |
_t.start(); |
|
920 |
} |
|
921 |
||
922 |
inline PerfTraceTime(PerfLongCounter* timerp, int* recursion_counter) : _timerp(timerp), _recursion_counter(recursion_counter) { |
|
923 |
if (!UsePerfData || (_recursion_counter != NULL && |
|
924 |
(*_recursion_counter)++ > 0)) return; |
|
925 |
_t.start(); |
|
926 |
} |
|
927 |
||
928 |
inline void suspend() { if (!UsePerfData) return; _t.stop(); } |
|
929 |
inline void resume() { if (!UsePerfData) return; _t.start(); } |
|
930 |
||
931 |
inline ~PerfTraceTime() { |
|
932 |
if (!UsePerfData || (_recursion_counter != NULL && |
|
933 |
--(*_recursion_counter) > 0)) return; |
|
934 |
_t.stop(); |
|
935 |
_timerp->inc(_t.ticks()); |
|
936 |
} |
|
937 |
}; |
|
938 |
||
939 |
/* The PerfTraceTimedEvent class is responsible for counting the |
|
940 |
* occurrence of some event and measuring the the elapsed time of |
|
941 |
* the event in two separate PerfCounter instances. |
|
942 |
* |
|
943 |
* Example: |
|
944 |
* |
|
945 |
* static PerfCounter* my_time_counter = PerfDataManager::create_counter("my.time.counter", PerfData::U_Ticks, CHECK); |
|
946 |
* static PerfCounter* my_event_counter = PerfDataManager::create_counter("my.event.counter", PerfData::U_Events, CHECK); |
|
947 |
* |
|
948 |
* { |
|
949 |
* PerfTraceTimedEvent ptte(my_time_counter, my_event_counter); |
|
950 |
* // perform the operation you want to count and measure |
|
951 |
* } |
|
952 |
* |
|
953 |
* Note: use of this class does not need to occur within a guarded |
|
954 |
* block. The UsePerfData guard is used with the implementation |
|
955 |
* of this class. |
|
956 |
* |
|
957 |
*/ |
|
958 |
class PerfTraceTimedEvent : public PerfTraceTime { |
|
959 |
||
960 |
protected: |
|
961 |
PerfLongCounter* _eventp; |
|
962 |
||
963 |
public: |
|
964 |
inline PerfTraceTimedEvent(PerfLongCounter* timerp, PerfLongCounter* eventp): PerfTraceTime(timerp), _eventp(eventp) { |
|
965 |
if (!UsePerfData) return; |
|
966 |
_eventp->inc(); |
|
967 |
} |
|
968 |
||
969 |
inline PerfTraceTimedEvent(PerfLongCounter* timerp, PerfLongCounter* eventp, int* recursion_counter): PerfTraceTime(timerp, recursion_counter), _eventp(eventp) { |
|
970 |
if (!UsePerfData) return; |
|
971 |
_eventp->inc(); |
|
972 |
} |
|
973 |
}; |
|
7397 | 974 |
|
975 |
#endif // SHARE_VM_RUNTIME_PERFDATA_HPP |