Hey folks what would be good way to profile the jv...
# performance
s
Hey folks what would be good way to profile the jvm used to run unit-tests? I tried running this using the gradle-profiler with async-profiler but I'm not sure if that leads to the test jvms being invoked with async-profiler enabled.
g
For future reference, you could add args to test JVM startup like this:
Copy code
tasks.withType(Test).configureEach { task ->
    jvmArgs("...")
  }
}
Where you can add a profiling agent such as
async-profiler
(agent usage) or JFR.
Copy code
tasks.withType(Test).configureEach { task ->
    jvmArgs("-agentpath:/path/to/libasyncProfiler.so=start,event=cpu,file=profile.html")
  }
}
thank you 1