Skip to content

Commit 69227ff

Browse files
Enable FlightRecorder for JMH Tests
1 parent 6951637 commit 69227ff

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

build.gradle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,15 @@ subprojects {
104104
main = 'org.openjdk.jmh.Main'
105105
classpath = sourceSets.perf.runtimeClasspath + sourceSets.main.output
106106
maxHeapSize = "512m"
107-
107+
jvmArgs '-XX:+UnlockCommercialFeatures'
108+
jvmArgs '-XX:+FlightRecorder'
109+
108110
if (project.hasProperty('jmh')) {
109111
args(jmh.split(' '))
110112
} else {
111113
//args '-h' // help output
112114
args '-f' // fork
113115
args '1'
114-
args '-tu' // time unit
115-
args 'ns'
116-
args '-bm' // benchmark mode
117-
args 'avgt'
118116
args '-wi' // warmup iterations
119117
args '5'
120118
args '-i' // test iterations
@@ -128,7 +126,6 @@ subprojects {
128126
//args 'HS_COMP' // HotSpot (tm) JIT compiler profiling via implementation-specific MBeans
129127
//args 'HS_CL' // HotSpot (tm) classloader profiling via implementation-specific MBeans
130128
//args 'STACK' // Simple and naive Java stack profiler
131-
args '.*OperatorSerializePerf.*' // for running only a specific test
132129
}
133130
}
134131

0 commit comments

Comments
 (0)