CLion
 
Get CLion
You are viewing the documentation for an earlier version of CLion.

CMake profiling

Last modified: 11 February 2024

With CMake profiling, you can identify which operations of the project reload are most time-consuming, and optimize your CMake scripts if necessary.

Profiling works for CMake version 3.18 and later. CMake stores the results in Google’s Trace Event format. CLion's integration helps you run the tracing and visualize the results.

Once the profiling flags are added, CLion will collect the tracing info on every project reload. Click the link in notification to open the results:

CMake profiling results ready