I am developing a C project and I need to profile it to understand where I can optimize it. I am using the CLion IDE and I tried their profiler tool without success.
The Profiler starts without any problem, however when I stop the process and go to the Profiler tab it shows the message "No profiler data":

I have defined a custom output path for the profiler data file in Settings | Build, Execution, Deployment | Dynamic Analysis Tools | Perf, and the data file is being successfully created and filled while the process runs. But in the end, CLion seems unable to read.
I have no experience with profilers. This was my first time trying to profile my program. What might be the problem here? Any suggestion?