Clang provides a few options to generate timing report. Among them, -ftime-report and -ftime-trace can be used to analyze the performance of Clang's internal passes. -fproc-stat-report records time a| MaskRay
Update: this has landed to LLVM/Clang mainline! So if all goes well, Clang 9.0 should contain this| Aras' website