RFR: 7903696: JMH: Add xctrace-based perfasm profiler for macOS [v3]
Aleksey Shipilev
shade at openjdk.org
Tue Apr 23 14:04:46 UTC 2024
On Tue, 23 Apr 2024 11:53:12 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
>> @tsitelov, first of all, thanks for your interest in the profiler!
>>
>>> My question was mostly about the prerequisites required to use the xctrace profiling feature:
>>>
>>> - do I need to install any prerequisites except XCode?
>>> - shall I create some specific instruments.app profile?
>>
>> `Xcode` is the only prerequisite. You can use either `Time Profiler` (it will be used by default) or `CPU Profiler` templates without configuring anything in the `Instruments.app`. A template name could be specified using `template` parameter.
>>
>>> Extra: can Instruments' CPU counters facility be used to profile cache misses and so on?
>>
>> In that case you have to configure and save a new template in the `Instruments.app` and then supply its name or a path to it to xctraceprof's `template` parameter. The only caveat is that the same PMU counter should be configured as both a PMI trigger and a sampled event in Instrument's recording settings.
>
> @fzhinkin, as per [bot's comment](https://github.com/openjdk/jmh/pull/130#issuecomment-2002026686) if you say `/integrate`, you would be able to integrate.
> @shipilev, thank you for reviewing and accepting the change!
Sure thing. Let's try to figure out `xctracenorm`?
-------------
PR Comment: https://git.openjdk.org/jmh/pull/130#issuecomment-2072401519
More information about the jmh-dev
mailing list