Browse Source

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 <chia7712@gmail.com>, David Jacot <djacot@confluent.io>, Luke Chen <showuon@gmail.com>
pull/10808/head
Ismael Juma 3 years ago committed by GitHub
parent
commit
8b71604c5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      gradle/dependencies.gradle
  2. 5
      jmh-benchmarks/README.md

2
gradle/dependencies.gradle

@ -71,7 +71,7 @@ versions += [ @@ -71,7 +71,7 @@ versions += [
jetty: "9.4.39.v20210325",
jersey: "2.34",
jline: "3.12.1",
jmh: "1.27",
jmh: "1.32",
hamcrest: "2.2",
log4j: "1.2.17",
scalaLogging: "3.9.3",

5
jmh-benchmarks/README.md

@ -45,6 +45,11 @@ With flame graph output (the semicolon is escaped to ensure it is not treated as @@ -45,6 +45,11 @@ With flame graph output (the semicolon is escaped to ensure it is not treated as
./jmh-benchmarks/jmh.sh -prof async:libPath=/path/to/libasyncProfiler.so\;output=flamegraph
Simultaneous cpu, allocation and lock profiling with async profiler 2.0 and jfr output (the semicolon is
escaped to ensure it is not treated as a command separator):
./jmh-benchmarks/jmh.sh -prof async:libPath=/path/to/libasyncProfiler.so\;output=jfr\;alloc\;lock LRUCacheBenchmark
A number of arguments can be passed to configure async profiler, run the following for a description:
./jmh-benchmarks/jmh.sh -prof async:help

Loading…
Cancel
Save