Instruments Time Profiler does not show time at the C source code level

MacOS 12.3.1 Xcode 13.3.1

When I run my executable under Instruments with the Time Profiler it shows the time per function but when I click on the function name to see the time per line of code it displays the source but with no time information (percentage of time for that line). I've tried a variety of compiler options for my code such as -g and -g3 but that does not seem to matter.

I have not used Instruments in a few years but I am pretty sure it displayed the time at the source code level with no special compiler flags in the past. Are special compiler flags needed to see the time per line of C source code? If not, how can I debug this?

Thanks

Same for me. The last version of Xcode that the Time Profiler works properly is 13.2.1. I keep a copy of it around for when I need to use the Time Profiler.

I have the same problem but for a C++ code ...

Same problem here with macOS over the last few months, and still not fixed in Instruments 13.4.1. Some lines are highlighted in the disassembly pane but almost nothing in the source pane.

I have seen the same problem in 13.4.1, and grateful for the tip above to try older version 13.2.1: that older version gives useful sample counts in my C code, while 13.4.1 did not.

Does anyone know if this issue has been resolved in any more recent version (post 13.4.1) version of Instruments?

Instruments Time Profiler does not show time at the C source code level
 
 
Q