From 69227ffffe59a3068608370efc4efe6ddc932d56 Mon Sep 17 00:00:00 2001 From: Ben Christensen Date: Mon, 23 Jun 2014 19:17:42 -0700 Subject: [PATCH] Enable FlightRecorder for JMH Tests --- build.gradle | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 6d91a9323e..08ccb99492 100644 --- a/build.gradle +++ b/build.gradle @@ -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 @@ -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 } }