Profiling of benchmarks with JFR

Aleksey Shipilev shade at redhat.com
Wed Sep 2 15:27:31 UTC 2020


On 9/2/20 4:25 PM, Aleksey Shipilev wrote:
> On 9/2/20 3:52 PM, Millies, Sebastian wrote:
>> Iteration   1: <failure>
>>
>> java.lang.RuntimeException: Error executing: [C:\Program Files\Zulu\zulu-8\jre\bin\java.exe, 6024, JFR.start, name=MyBenchmarkClass.myBenchmark-AverageTime, settings=profile]
>> Error: Could not find or load main class 6024
> This is the Windows-specific bug: it should call jcmd.exe, not java.exe. It happens because path
> replacement looks for "/", not for "\". I'll fix it...

This is fixed with:
   https://bugs.openjdk.java.net/browse/CODETOOLS-7902763
   https://hg.openjdk.java.net/code-tools/jmh/rev/523c524305e2

Tell me if you can test it with self-built 1.26-SNAPSHOT. I would probably release it is 1.25.2 soon.

-- 
Thanks,
-Aleksey



More information about the jmh-dev mailing list