[Patch] Pass counter values to -prof perf
Eric Caspole
eric.caspole at oracle.com
Thu Aug 23 15:05:33 UTC 2018
Hi Nitsan,
My patch here is to put the same functionality with "-prof perf" which
shows the "perf stat" data; as you say, custom events already works with
"-prof perfasm"
Regards,
Eric
On 08/23/2018 03:45 AM, Nitsan Wakart wrote:
> Hi Eric,
> AFAICT, the perfasm profiler has supported events for a while now.
> "-prof perfasm:h" prints out the help:
> events=<event> Events to gather. (default:
> [cycles, instructions])
>
> Use for instance with some random events "-prof
> perfasm:events=cycles,LLC-load-misses,cache-misses"
> ...
> Perf output processed (skipped 8.662 seconds):
> Column 1: cycles (49249 events)
> Column 2: LLC-load-misses (1222 events)
> Column 3: cache-misses (4831 events)
>
> ...
>
> So not so sure what is added here.
> Thanks,
> Nitsan
>
>
> On Wednesday, August 22, 2018, 10:50:44 PM GMT+2, Eric Caspole
> <eric.caspole at oracle.com> wrote:
>
>
> Hi everybody,
>
> I have a use case with JMH on new hardware where I need to pass the
> counters I want to see to -prof perf, I would like to contribute a patch
> for this below:
>
> http://cr.openjdk.java.net/~ecaspole/jmh_stat_counters/webrev/
> <http://cr.openjdk.java.net/%7Eecaspole/jmh_stat_counters/webrev/>
>
> It works like -prof perfasm extended syntax like
>
> -prof 'perf:events=cycles,instructions,r99'
>
> Works for me so far in my own case here.
>
> Thanks,
>
> Eric
>
More information about the jmh-dev
mailing list