LLVM XRay Runtime Library


I am trying to instrument some LLVM IR. I am working with LLVM IR directly (not using Clang).

I added XRay function attributes and set the XRAY_OPTIONS to patch_premain=true xray_mode=xray-basic verbosity=0.

Still, I see no trace logs getting dumped. From the official documentation, it is not very clear what exactly to do with XRay Runtime Library.