add gprofng as jmh profiler

Daniel Jeliński djelinski1 at gmail.com
Fri May 17 15:29:40 UTC 2024


Hi all,
would it be possible to add gprofng to the list of available jmh profilers?

Gprofng is a Linux CPU profiler, featuring flamegraphs, annotated
assembly, hardware counters, and more. Outside of JMH, profiling is
started from the command line like:

    gprofng collect app -t 30-0 -O /path/to/output java [arguments]

This command line runs Java with the given arguments, collects
profiling information starting after 30 seconds until the process
exits (-t 30-0), and writes the collected information to
/path/to/output (-O path).

Cheers,
Daniel


More information about the jmh-dev mailing list