0

I have confirmed my host machine support branch-miss perf events by testing with perf command.

But I cannot observe any branch-miss info from the generated flamegraph when I use async-profiler. This is the command I use: profiler.sh -f /tmp/fg.html -e branch-misses -d 120 Pid. The fg.html is empty.

If I use profiler.sh -f /tmp/fg.html -e cpu -d 120 Pid, the flamegraph is generated correctly but there is no info about branch-miss.

Do I miss anything here? Thank you.

The version of async-profiler I use is 2.8.3 (latest).

Bostonian
  • 615
  • 7
  • 16
  • Check if JVM logs have any profiler-related messages. Make sure `kernel.perf_event_paranoid` sysctl is set to `1` or smaller. Try changing profiling interval (`-i`). The default interval for `branch-misses` is 1000. – apangin Nov 11 '22 at 19:37

0 Answers0