[llvm-dev] profiling JIT compiled code with perf

Frank Tetzel via llvm-dev llvm-dev at lists.llvm.org
Wed Jul 25 01:35:05 PDT 2018


Hello,

> > > 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?

thanks for working on perf profiling support for the jit engines.

Sadly, I still could not find the time to try it out, not even the
simple example from the commit message. 

Also, I'm quite new to llvm and only have some toy examples at the
moment which use orcjit with the SimpleCompiler class. I'm not sure
where to add the perf event listener in all that.

Best regards,
Frank


More information about the llvm-dev mailing list