source: 2015/24/EemeliK/runtime/jre-x64/1.8.0_25/lib/jfr/profile.jfc @ 7091

Revision 7091, 18.8 KB checked in by sieerinn, 4 years ago (diff)
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<!--
4     Recommended way to edit .jfc files is to use Java Mission Control,
5     see Window -> Flight Recorder Template Manager.
6-->
7
8<configuration version="1.0" name="Profiling" description="Low overhead configuration for profiling, typically around 2 % overhead." provider="Oracle">
9
10  <producer uri="http://www.oracle.com/hotspot/jvm/" label="Oracle JDK">
11
12    <control>
13
14      <!--
15           Contents of the control element is not read by the JVM, it's used
16           by Java Mission Control to change settings that carry the control attribute.
17      -->
18
19      <selection name="gc-level" default="detailed" label="Garbage Collector">
20        <option label="Off" name="off">off</option>
21        <option label="Normal" name="detailed">normal</option>
22        <option label="All" name="all">all</option>
23      </selection>
24
25      <condition name="gc-enabled-normal" true="true" false="false">
26        <or>
27          <test name="gc-level" operator="equal" value="normal"/>
28          <test name="gc-level" operator="equal" value="all"/>
29        </or>
30      </condition>
31
32      <condition name="gc-enabled-all" true="true" false="false">
33        <test name="gc-level" operator="equal" value="all"/>
34      </condition>
35
36      <selection name="compiler-level" default="detailed" label="Compiler">
37        <option label="Off" name="off">off</option>
38        <option label="Normal" name="normal">normal</option>
39        <option label="Detailed" name="detailed">detailed</option>
40        <option label="All" name="all">all</option>
41      </selection>
42
43      <condition name="compiler-enabled" true="false" false="true">
44        <test name="compiler-level" operator="equal" value="off"/>
45      </condition>
46
47      <condition name="compiler-enabled-failure" true="true" false="false">
48        <or>
49          <test name="compiler-level" operator="equal" value="detailed"/>
50          <test name="compiler-level" operator="equal" value="all"/>
51        </or>
52      </condition>
53
54      <condition name="compiler-sweeper-threshold" true="0 ms" false="100 ms">
55        <test name="compiler-level" operator="equal" value="all"/>
56      </condition>
57
58      <condition name="compiler-compilation-threshold" true="1000 ms">
59        <test name="compiler-level" operator="equal" value="normal"/>
60      </condition>
61
62      <condition name="compiler-compilation-threshold" true="100 ms">
63        <test name="compiler-level" operator="equal" value="detailed"/>
64      </condition>
65
66      <condition name="compiler-compilation-threshold" true="0 ms">
67        <test name="compiler-level" operator="equal" value="all"/>
68      </condition>
69
70      <condition name="compiler-phase-threshold" true="60 s">
71        <test name="compiler-level" operator="equal" value="normal"/>
72      </condition>
73
74      <condition name="compiler-phase-threshold" true="10 s">
75        <test name="compiler-level" operator="equal" value="detailed"/>
76      </condition>
77
78      <condition name="compiler-phase-threshold" true="0 s">
79        <test name="compiler-level" operator="equal" value="all"/>
80      </condition>
81
82      <selection name="method-sampling-interval" default="maximum" label="Method Sampling">
83        <option label="Off" name="off">999 d</option>
84        <option label="Normal" name="normal">20 ms</option>
85        <option label="Maximum" name="maximum">10 ms</option>
86      </selection>
87
88      <condition name="method-sampling-enabled" true="false" false="true">
89        <test name="method-sampling-interval" operator="equal" value="999 d"/>
90      </condition>
91
92      <selection name="thread-dump-interval" default="everyMinute" label="Thread Dump">
93        <option label="Off" name="off">999 d</option>
94        <option label="At least Once" name="normal">everyChunk</option>
95        <option label="Every 60 s" name="everyMinute">60 s</option>
96        <option label="Every 10 s" name="everyTenSecond">10 s</option>
97        <option label="Every 1 s" name="everySecond">1 s</option>
98      </selection>
99
100      <condition name="thread-dump-enabled" true="false" false="true">
101        <test name="thread-dump-interval" operator="equal" value="999 d"/>
102      </condition>
103
104      <selection name="exception-level" default="errors" label="Exceptions">
105        <option label="Off" name="off">off</option>
106        <option label="Errors Only" name="errors">errors</option>
107        <option label="All Exceptions, including Errors" name="all">all</option>
108      </selection>
109
110      <condition name="enable-errors" true="true" false="false">
111        <or>
112          <test name="exception-level" operator="equal" value="errors"/>
113          <test name="exception-level" operator="equal" value="all"/>
114        </or>
115      </condition>
116
117      <condition name="enable-exceptions" true="true" false="false">
118        <test name="exception-level" operator="equal" value="all"/>
119      </condition>
120
121      <text name="synchronization-threshold" label="Synchronization Threshold" contentType="timespan" minimum="0 s">10 ms</text>
122
123      <text name="file-io-threshold" label="File I/O Threshold" contentType="timespan" minimum="0 s">10 ms</text>
124
125      <text name="socket-io-threshold" label="Socket I/O Threshold" contentType="timespan" minimum="0 s">10 ms</text>
126
127      <flag name="heap-statistics-enabled" label="Heap Statistics">false</flag>
128
129      <flag name="class-loading-enabled" label="Class Loading">false</flag>
130
131      <flag name="allocation-profiling-enabled" label="Allocation Profiling">true</flag>
132
133    </control>
134
135    <event path="java/statistics/thread_allocation">
136      <setting name="enabled">true</setting>
137      <setting name="period">everyChunk</setting>
138    </event>
139
140    <event path="java/statistics/class_loading">
141      <setting name="enabled">true</setting>
142      <setting name="period">1000 ms</setting>
143    </event>
144
145    <event path="java/statistics/threads">
146      <setting name="enabled">true</setting>
147      <setting name="period">1000 ms</setting>
148    </event>
149
150    <event path="java/thread_start">
151      <setting name="enabled">true</setting>
152    </event>
153
154    <event path="java/thread_end">
155      <setting name="enabled">true</setting>
156    </event>
157
158    <event path="java/thread_sleep">
159      <setting name="enabled">true</setting>
160      <setting name="stackTrace">true</setting>
161      <setting name="threshold" control="synchronization-threshold">10 ms</setting>
162    </event>
163
164    <event path="java/thread_park">
165      <setting name="enabled">true</setting>
166      <setting name="stackTrace">true</setting>
167      <setting name="threshold" control="synchronization-threshold">10 ms</setting>
168    </event>
169
170    <event path="java/monitor_enter">
171      <setting name="enabled">true</setting>
172      <setting name="stackTrace">true</setting>
173      <setting name="threshold" control="synchronization-threshold">10 ms</setting>
174    </event>
175
176    <event path="java/monitor_wait">
177      <setting name="enabled">true</setting>
178      <setting name="stackTrace">true</setting>
179      <setting name="threshold" control="synchronization-threshold">10 ms</setting>
180    </event>
181
182    <event path="vm/class/load">
183      <setting name="enabled" control="class-loading-enabled">false</setting>
184      <setting name="stackTrace">true</setting>
185      <setting name="threshold">0 ms</setting>
186    </event>
187
188    <event path="vm/class/unload">
189      <setting name="enabled" control="class-loading-enabled">false</setting>
190    </event>
191
192    <event path="vm/info">
193      <setting name="enabled">true</setting>
194      <setting name="period">everyChunk</setting>
195    </event>
196
197    <event path="vm/initial_system_property">
198      <setting name="enabled">true</setting>
199      <setting name="period">everyChunk</setting>
200    </event>
201
202    <event path="vm/prof/execution_sample">
203      <setting name="enabled" control="method-sampling-enabled">true</setting>
204      <setting name="period" control="method-sampling-interval">10 ms</setting>
205    </event>
206
207    <event path="vm/prof/execution_sampling_info">
208      <setting name="enabled">false</setting>
209      <setting name="threshold">1 ms</setting>
210    </event>
211
212    <event path="vm/runtime/execute_vm_operation">
213      <setting name="enabled">true</setting>
214      <setting name="threshold">10 ms</setting>
215    </event>
216
217    <event path="vm/runtime/thread_dump">
218      <setting name="enabled" control="thread-dump-enabled">true</setting>
219      <setting name="period" control="thread-dump-interval">60 s</setting>
220    </event>
221
222    <event path="vm/flag/long">
223      <setting name="enabled">true</setting>
224      <setting name="period">everyChunk</setting>
225    </event>
226
227    <event path="vm/flag/ulong">
228      <setting name="enabled">true</setting>
229      <setting name="period">everyChunk</setting>
230    </event>
231
232    <event path="vm/flag/double">
233      <setting name="enabled">true</setting>
234      <setting name="period">everyChunk</setting>
235    </event>
236
237    <event path="vm/flag/boolean">
238      <setting name="enabled">true</setting>
239      <setting name="period">everyChunk</setting>
240    </event>
241
242    <event path="vm/flag/string">
243      <setting name="enabled">true</setting>
244      <setting name="period">everyChunk</setting>
245    </event>
246
247    <event path="vm/flag/long_changed">
248      <setting name="enabled">true</setting>
249    </event>
250
251    <event path="vm/flag/ulong_changed">
252      <setting name="enabled">true</setting>
253    </event>
254
255    <event path="vm/flag/double_changed">
256      <setting name="enabled">true</setting>
257    </event>
258
259    <event path="vm/flag/boolean_changed">
260      <setting name="enabled">true</setting>
261    </event>
262
263    <event path="vm/flag/string_changed">
264      <setting name="enabled">true</setting>
265    </event>
266
267    <event path="vm/gc/detailed/object_count">
268      <setting name="enabled" control="heap-statistics-enabled">false</setting>
269      <setting name="period">everyChunk</setting>
270    </event>
271
272    <event path="vm/gc/configuration/gc">
273      <setting name="enabled" control="gc-enabled-normal">true</setting>
274      <setting name="period">everyChunk</setting>
275    </event>
276
277    <event path="vm/gc/configuration/heap">
278      <setting name="enabled" control="gc-enabled-normal">true</setting>
279      <setting name="period">everyChunk</setting>
280    </event>
281
282    <event path="vm/gc/configuration/young_generation">
283      <setting name="enabled" control="gc-enabled-normal">true</setting>
284      <setting name="period">everyChunk</setting>
285    </event>
286
287    <event path="vm/gc/configuration/tlab">
288      <setting name="enabled" control="gc-enabled-normal">true</setting>
289      <setting name="period">everyChunk</setting>
290    </event>
291
292    <event path="vm/gc/configuration/survivor">
293      <setting name="enabled" control="gc-enabled-normal">true</setting>
294      <setting name="period">everyChunk</setting>
295    </event>
296
297    <event path="vm/gc/detailed/object_count_after_gc">
298      <setting name="enabled">false</setting>
299    </event>
300
301    <event path="vm/gc/heap/summary">
302      <setting name="enabled" control="gc-enabled-normal">true</setting>
303    </event>
304
305    <event path="vm/gc/heap/ps_summary">
306      <setting name="enabled" control="gc-enabled-normal">true</setting>
307    </event>
308
309    <event path="vm/gc/heap/metaspace_summary">
310      <setting name="enabled" control="gc-enabled-normal">true</setting>
311    </event>
312
313    <event path="vm/gc/collector/garbage_collection">
314      <setting name="enabled" control="gc-enabled-normal">true</setting>
315      <setting name="threshold">0 ms</setting>
316    </event>
317
318    <event path="vm/gc/collector/parold_garbage_collection">
319      <setting name="enabled" control="gc-enabled-normal">true</setting>
320      <setting name="threshold">0 ms</setting>
321    </event>
322
323    <event path="vm/gc/collector/young_garbage_collection">
324      <setting name="enabled" control="gc-enabled-normal">true</setting>
325      <setting name="threshold">0 ms</setting>
326    </event>
327
328    <event path="vm/gc/collector/old_garbage_collection">
329      <setting name="enabled" control="gc-enabled-normal">true</setting>
330      <setting name="threshold">0 ms</setting>
331    </event>
332
333    <event path="vm/gc/collector/g1_garbage_collection">
334      <setting name="enabled" control="gc-enabled-normal">true</setting>
335      <setting name="threshold">0 ms</setting>
336    </event>
337
338    <event path="vm/gc/phases/pause">
339      <setting name="enabled" control="gc-enabled-normal">true</setting>
340      <setting name="threshold">0 ms</setting>
341    </event>
342
343    <event path="vm/gc/phases/pause_level_1">
344      <setting name="enabled" control="gc-enabled-normal">true</setting>
345      <setting name="threshold">0 ms</setting>
346    </event>
347
348    <event path="vm/gc/phases/pause_level_2">
349      <setting name="enabled" control="gc-enabled-normal">true</setting>
350      <setting name="threshold">0 ms</setting>
351    </event>
352
353    <event path="vm/gc/phases/pause_level_3">
354      <setting name="enabled" control="gc-enabled-all">false</setting>
355      <setting name="threshold">0 ms</setting>
356    </event>
357
358    <event path="vm/gc/reference/statistics">
359      <setting name="enabled" control="gc-enabled-normal">true</setting>
360    </event>
361
362    <event path="vm/gc/detailed/promotion_failed">
363      <setting name="enabled" control="gc-enabled-normal">true</setting>
364    </event>
365
366    <event path="vm/gc/detailed/evacuation_failed">
367      <setting name="enabled" control="gc-enabled-normal">true</setting>
368    </event>
369
370    <event path="vm/gc/detailed/evacuation_info">
371      <setting name="enabled" control="gc-enabled-normal">true</setting>
372    </event>
373
374    <event path="vm/gc/detailed/concurrent_mode_failure">
375      <setting name="enabled" control="gc-enabled-normal">true</setting>
376    </event>
377
378    <event path="vm/compiler/config">
379      <setting name="enabled" control="compiler-enabled">true</setting>
380      <setting name="period">everyChunk</setting>
381    </event>
382
383    <event path="vm/compiler/stats">
384      <setting name="enabled" control="compiler-enabled">true</setting>
385      <setting name="period">1000 ms</setting>
386    </event>
387
388    <event path="vm/compiler/compilation">
389      <setting name="enabled" control="compiler-enabled">true</setting>
390      <setting name="threshold" control="compiler-compilation-threshold">100 ms</setting>
391    </event>
392
393    <event path="vm/compiler/phase">
394      <setting name="enabled" control="compiler-enabled">true</setting>
395      <setting name="threshold" control="compiler-phase-threshold">10 s</setting>
396    </event>
397
398    <event path="vm/compiler/failure">
399      <setting name="enabled" control="compiler-enabled-failure">true</setting>
400    </event>
401
402    <event path="vm/code_sweeper/config">
403      <setting name="enabled" control="compiler-enabled">true</setting>
404      <setting name="period">everyChunk</setting>
405    </event>
406
407    <event path="vm/code_sweeper/stats">
408      <setting name="enabled" control="compiler-enabled">true</setting>
409      <setting name="period">everyChunk</setting>
410    </event>
411
412    <event path="vm/code_sweeper/sweep">
413      <setting name="enabled" control="compiler-enabled">true</setting>
414      <setting name="threshold" control="compiler-sweeper-threshold">100 ms</setting>
415    </event>
416
417    <event path="vm/code_cache/config">
418      <setting name="enabled" control="compiler-enabled">true</setting>
419      <setting name="period">everyChunk</setting>
420    </event>
421
422    <event path="vm/code_cache/stats">
423      <setting name="enabled" control="compiler-enabled">true</setting>
424      <setting name="period">everyChunk</setting>
425    </event>
426
427    <event path="vm/code_cache/full">
428      <setting name="enabled" control="compiler-enabled">true</setting>
429    </event>
430
431    <event path="os/information">
432      <setting name="enabled">true</setting>
433      <setting name="period">everyChunk</setting>
434    </event>
435
436    <event path="os/processor/cpu_information">
437      <setting name="enabled">true</setting>
438      <setting name="period">everyChunk</setting>
439    </event>
440
441    <event path="os/processor/context_switch_rate">
442      <setting name="enabled" control="compiler-enabled">true</setting>
443      <setting name="period">10 s</setting>
444    </event>
445
446    <event path="os/processor/cpu_load">
447      <setting name="enabled">true</setting>
448      <setting name="period">1000 ms</setting>
449    </event>
450
451    <event path="os/processor/cpu_tsc">
452      <setting name="enabled">true</setting>
453      <setting name="period">everyChunk</setting>
454    </event>
455
456    <event path="os/system_process">
457      <setting name="enabled">true</setting>
458      <setting name="period">everyChunk</setting>
459    </event>
460
461    <event path="os/initial_environment_variable">
462      <setting name="enabled">true</setting>
463      <setting name="period">everyChunk</setting>
464    </event>
465
466    <event path="os/memory/physical_memory">
467      <setting name="enabled">true</setting>
468      <setting name="period">everyChunk</setting>
469    </event>
470
471    <event path="java/object_alloc_in_new_TLAB">
472      <setting name="enabled" control="allocation-profiling-enabled">true</setting>
473      <setting name="stackTrace">true</setting>
474    </event>
475
476    <event path="java/object_alloc_outside_TLAB">
477      <setting name="enabled" control="allocation-profiling-enabled">true</setting>
478      <setting name="stackTrace">true</setting>
479    </event>
480
481  </producer>
482
483  <producer uri="http://www.oracle.com/hotspot/jdk/" label="Oracle JDK">
484
485    <event path="java/file_read">
486      <setting name="enabled">true</setting>
487      <setting name="stackTrace">true</setting>
488      <setting name="threshold" control="http://www.oracle.com/hotspot/jvm/file-io-threshold">10 ms</setting>
489    </event>
490
491    <event path="java/file_write">
492      <setting name="enabled">true</setting>
493      <setting name="stackTrace">true</setting>
494      <setting name="threshold" control="http://www.oracle.com/hotspot/jvm/file-io-threshold">10 ms</setting>
495    </event>
496
497    <event path="java/socket_read">
498      <setting name="enabled">true</setting>
499      <setting name="stackTrace">true</setting>
500      <setting name="threshold" control="http://www.oracle.com/hotspot/jvm/socket-io-threshold">10 ms</setting>
501    </event>
502
503    <event path="java/socket_write">
504      <setting name="enabled">true</setting>
505      <setting name="stackTrace">true</setting>
506      <setting name="threshold" control="http://www.oracle.com/hotspot/jvm/socket-io-threshold">10 ms</setting>
507    </event>
508
509    <event path="java/exception_throw">
510      <setting name="enabled" control="http://www.oracle.com/hotspot/jvm/enable-exceptions">false</setting>
511      <setting name="stackTrace">true</setting>
512    </event>
513
514    <event path="java/error_throw">
515      <setting name="enabled" control="http://www.oracle.com/hotspot/jvm/enable-errors">true</setting>
516      <setting name="stackTrace">true</setting>
517    </event>
518
519    <event path="java/statistics/throwables">
520      <setting name="enabled">true</setting>
521      <setting name="period">1000 ms</setting>
522    </event>
523
524  </producer>
525
526  <producer uri="http://www.oracle.com/hotspot/jfr-info/" label="Oracle JDK">
527
528    <event path="recordings/recording">
529      <setting name="enabled">true</setting>
530    </event>
531
532    <event path="recordings/recording_setting">
533      <setting name="enabled">true</setting>
534    </event>
535
536  </producer>
537
538</configuration>
Note: See TracBrowser for help on using the repository browser.