Testing LLVM XRay

Hi All,

I am trying to test run clang XRay tool. I was following the steps at [1]. But the log file does not seem to get generated. According to the instructions I used ‘fxray-instrument’ switch when compiling and then specified ‘patch_premain=true’ at XRAY_OPTIONS. Is there anything else that I need to do? I am on a trunk build of clang. Could that be it? I am on clang version 8.0.0 (trunk 340502).


[1] https://llvm.org/docs/XRayExample.html#id9

The link should be

[1] https://llvm.org/docs/XRayExample.html#further-exploration

Hi Buddhika,

Great! Now it works.