Skip to content

Commit 8b71604

Browse files
authored
MINOR: Update jmh for async profiler 2.0 support (#10800)
Async profiler 2.0 outputs html5 flame graph files and supports simultaneous collection of cpu, allocation and lock profiles in jfr format. Updated the readme to include an example of the latter and verified that the Readme commands work with async profiler 2.0. Release notes: * 1.28: https://mail.openjdk.java.net/pipermail/jmh-dev/2021-March/003171.html * 1.29: https://mail.openjdk.java.net/pipermail/jmh-dev/2021-March/003218.html * 1.30: https://mail.openjdk.java.net/pipermail/jmh-dev/2021-May/003237.html * 1.31: https://mail.openjdk.java.net/pipermail/jmh-dev/2021-May/003286.html * 1.32: https://mail.openjdk.java.net/pipermail/jmh-dev/2021-May/003307.html Reviewers: Chia-Ping Tsai <[email protected]>, David Jacot <[email protected]>, Luke Chen <[email protected]>
1 parent 1a7ad70 commit 8b71604

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

gradle/dependencies.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ versions += [
7171
jetty: "9.4.39.v20210325",
7272
jersey: "2.34",
7373
jline: "3.12.1",
74-
jmh: "1.27",
74+
jmh: "1.32",
7575
hamcrest: "2.2",
7676
log4j: "1.2.17",
7777
scalaLogging: "3.9.3",

jmh-benchmarks/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ With flame graph output (the semicolon is escaped to ensure it is not treated as
4545

4646
./jmh-benchmarks/jmh.sh -prof async:libPath=/path/to/libasyncProfiler.so\;output=flamegraph
4747

48+
Simultaneous cpu, allocation and lock profiling with async profiler 2.0 and jfr output (the semicolon is
49+
escaped to ensure it is not treated as a command separator):
50+
51+
./jmh-benchmarks/jmh.sh -prof async:libPath=/path/to/libasyncProfiler.so\;output=jfr\;alloc\;lock LRUCacheBenchmark
52+
4853
A number of arguments can be passed to configure async profiler, run the following for a description:
4954

5055
./jmh-benchmarks/jmh.sh -prof async:help

0 commit comments

Comments
 (0)