jvm-profiling-tools / perf-map-agent

A java agent to generate method mappings to use with the linux `perf` tool
GNU General Public License v2.0
1.64k stars 261 forks source link

Lack of perf PMU event #72

Open RainM opened 6 years ago

RainM commented 6 years ago

Hi,

It's impossible to record plain PMU events like mispredicted branches with perf-java-recors-stack. This script supports profiling with specified frequency only (-F argument).

I'd like to propose either add one more script (like perf-java-record-stacks) which is able to record PMU events or modify existing perf-java-record-stack script in order to let user to specify PMU event to profile. If you are ok for these changes, I would implement it.

--Sergey

nitsanw commented 5 years ago

"This script supports profiling with specified frequency only (-F argument)." - Which script? E.g. with the flames graph script the following works for me: ./perf-java-flames <pid> -e LLC-store-misses