Skip to content

Commit

Permalink
Enable FlightRecorder for JMH Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benjchristensen committed Jun 24, 2014
1 parent 6951637 commit 69227ff
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,15 @@ subprojects {
main = 'org.openjdk.jmh.Main'
classpath = sourceSets.perf.runtimeClasspath + sourceSets.main.output
maxHeapSize = "512m"

jvmArgs '-XX:+UnlockCommercialFeatures'
jvmArgs '-XX:+FlightRecorder'

if (project.hasProperty('jmh')) {
args(jmh.split(' '))
} else {
//args '-h' // help output
args '-f' // fork
args '1'
args '-tu' // time unit
args 'ns'
args '-bm' // benchmark mode
args 'avgt'
args '-wi' // warmup iterations
args '5'
args '-i' // test iterations
Expand All @@ -128,7 +126,6 @@ subprojects {
//args 'HS_COMP' // HotSpot (tm) JIT compiler profiling via implementation-specific MBeans
//args 'HS_CL' // HotSpot (tm) classloader profiling via implementation-specific MBeans
//args 'STACK' // Simple and naive Java stack profiler
args '.*OperatorSerializePerf.*' // for running only a specific test
}
}

Expand Down

0 comments on commit 69227ff

Please sign in to comment.