Hacker News new | ask | show | jobs
by Sesse__ 304 days ago
> Normally you spin up a tool like vtune or uprof to analyze your benchmark hotspots at the ISA level. No idea about tools like that for ARM.

perf is included with the Linux kernel, and works with a fair amount of architectures (including Arm).

2 comments

You may still need to install linux-tools to get the perf command.
It's included with the kernel as distributed by upstream. Your distribution may choose to split out parts of it into other binary packages.
I'm not disagreeing, I just wanted to add so others might know why they can't just run the command.
perf doesn't give you instruction level profiling, does it? I thought the traces were mostly at the symbol level
Hit enter on the symbol, and you get instruction-level profiles. Or use perf annotate explicitly. (The profiles are inherently instruction-level, but the default perf report view aggregates them into function-level for ease of viewing.)