I know it’s a general issue, but it’s driving me mad, and perhaps one of you already had the issue and can point me out what I’m doing wrong…
I recently updated everything (Xcode & intruments 7.3 on 10.11 ), and the time profiler won’t show anymore the source code.
Here is what I do :
open the juceDemo project in xcode
I’m in debug, without optimizations, with symbol generated and not stripped, and DWARF with dSYM File.
I build and run, then Xcode menu->open dev tool -> instruments -> Time Profiler
attach to the running demo app
record a bit
double click on a juce function call in the stack
-> no source code
The weird thing is that it worked once (and only once) after I relaunched xcode. Not sure why, and I can’t reproduce that.
Do you guys think about something that I should check or do differently?
I just created a simple console app, changed the Build Configuration on the Profile scheme to Debug, and when I run the time profiler, I can double click my function, see the source code, and see how many times everything has been called.
Actually it works fine to display the source for the files that are ‘directly’ in the “source” folder.
But it does not work for the files that are in the different modules.
For those, instruments fails to find them.
For instance, it fails to find :
I’m having the same problem, can’t see my source code, just the function names.
I’ve checked every flag for generating a symbol table, ensuring the binary isn’t stripped etc. but Instruments refuses to display the source code.
I’ve confirmed that this is a JUCE/XCode build problem by building another (small) stand-alone app: I’m able to profile that and see every line of code.
If I set the Scheme for the Profiler to use a Debug build, I can see the source code in Instruments.
So looks like it’s some difference between the Debug & Release schemes or Project settings.