aboutsummaryrefslogtreecommitdiff
path: root/impl/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'impl/build.gradle')
-rw-r--r--impl/build.gradle65
1 files changed, 65 insertions, 0 deletions
diff --git a/impl/build.gradle b/impl/build.gradle
new file mode 100644
index 0000000..7f7fddb
--- /dev/null
+++ b/impl/build.gradle
@@ -0,0 +1,65 @@
+plugins {
+ id "me.champeau.jmh"
+}
+
+description = "PerfMark Implementation API"
+ext.moduleName = "io.perfmark.impl"
+ext.jdkVersion = JavaVersion.VERSION_1_6
+
+java {
+ toolchain {
+ languageVersion = JavaLanguageVersion.of(11)
+ }
+}
+
+compileJava {
+ sourceCompatibility = jdkVersion
+ targetCompatibility = jdkVersion
+
+ options.compilerArgs.add("-Xlint:-options")
+}
+
+dependencies {
+ implementation project(':perfmark-api')
+ compileOnly libs.jsr305,
+ libs.errorprone
+ testImplementation libs.truth
+ testCompileOnly libs.errorprone
+}
+
+
+jmh {
+
+ timeOnIteration = "1s"
+ warmup = "1s"
+ fork = 400
+ warmupIterations = 0
+
+ includes = ["ClassInit"]
+ profilers = ["cl"]
+ jvmArgs = ["-Dio.perfmark.PerfMark.debug=true"]
+
+ /*
+ profilers = ["perfasm"]
+
+ jvmArgs = [
+ "-XX:+UnlockDiagnosticVMOptions",
+ "-XX:+LogCompilation",
+ "-XX:LogFile=/tmp/blah.txt",
+ "-XX:+PrintAssembly",
+ "-XX:+PrintInterpreter",
+ "-XX:+PrintNMethods",
+ "-XX:+PrintNativeNMethods",
+ "-XX:+PrintSignatureHandlers",
+ "-XX:+PrintAdapterHandlers",
+ "-XX:+PrintStubCode",
+ "-XX:+PrintCompilation",
+ "-XX:+PrintInlining",
+ "-XX:+TraceClassLoading",
+ "-XX:PrintAssemblyOptions=syntax",
+ "-XX:PrintAssemblyOptions=intel"
+ ]
+ */
+
+ //duplicateClassesStrategy DuplicatesStrategy.INCLUDE
+} \ No newline at end of file