[llvm-dev] profiling JIT compiled code with perf

Frank Tetzel via llvm-dev llvm-dev at lists.llvm.org
Tue Jul 31 03:22:10 PDT 2018


> > > Have you seen https://reviews.llvm.org/D44892? we are using it in
> > > Julia to use perf on jitted code.  
> > 
> > No, I did not see this patch before. Thanks a lot for the pointer.
> > 
> > It seems to be doing exactly what I want. Let's see if I get it
> > working.  
> 
> FWIW, I just merged this.  Did you have any luck getting it to work?

I have trouble getting it to work. I tried the example in the commit
message, but perf report doesn't like to cooperate, or something else.

Do I have to activate something else than LLVM_USE_PERF in the
compilation of llvm? Or do some other configuration?

I had the impression that it's on by default in lli for now. Any
special switch I have to use? What am I missing?

Best regards,
Frank


More information about the llvm-dev mailing list