How to check whether profiling is supported

How can I check whether a julia binary was built with USE_PERF_JITEVENTS=1? It seems to be default on linux platforms, but is there any way to query this?

I wonder if I have to build julia from source for profiling or if the official binary julia or my distro’s julia would work as well.