I want to profile code, generated by JIT on Linux, with using hardware performace counters. As I know, most common profilers are oprofile
and perf
.
How can I integrate JIT and oprofile/perf?
My JIT is not JAVA which is already supported in oprofile. (perf?)
For example we can consider LLVM's JIT. I want to
- See the hottest functions (their names) from JIT-ted code
- See the disassembly of hottest function, with performance counter statistics assigned to every instruction