Hi,
I am trying to use perf tools (record/report) to profile JITed functions, when using OrcJIT in the XLA runtime. Even though there's this option to register `PerfJITEventListener` by setting `enable_perf_listener`, the call to `llvm::JITEventListener::createPerfJITEventListener()` returns NULL showing that it failed.
Moreover, the online documentation for OrcJIT in the llvm-project says that `JITEventListeners` feature isn't supported. This confuses me as to why there is an option for this if it's not supported in llvm.
How is OrcJIT supposed to make use of `PerfJITEventListener`? And how can it be enabled in the XLA runtime (if possible at all)?
If not, is there another way to profile JITed code?
best,
Muneeb