[llvm-dev] profiling JIT compiled code with perf

Frank Tetzel via llvm-dev llvm-dev at lists.llvm.org
Sun Jul 15 04:00:40 PDT 2018


Hello,

is there any support in LLVM for the jitdump format [1] of perf?

It enables perf report to also "zoom in" and annotate the JIT compiled
code on assembly level with runtime percentage. It helps a lot to
understand which parts of the generated code is the bottleneck.

I recently did a proof-of-concept for the JIT assembler asmjit [2]. It
just dumps the generated code in the right format and mmaps the file to
let perf record know about it. perf report picks it up automatically.

So, is there any profiling support for JIT compiled code?

Best regards,
Frank


[1] https://raw.githubusercontent.com/torvalds/linux/master/tools/perf/Documentation/jitdump-specification.txt
[2] https://github.com/asmjit/asmjit/pull/197


More information about the llvm-dev mailing list