Apple Instruments has garbled characters and gray character names when profiling a C ++ application

I am trying to profile a large C ++ application using Apple Instruments. I also wanted to do it WITHOUT building the Xcode project / workspace around my project (since I already have an insane amount of dependencies / libraries / make files).

To do this, I launched Tools from Xcode/Contents/Applications/Instruments and selected the time profiler. For my purpose, I installed it in my binary, which I would like to profile. Then I set the working directory to where my project files are located (and the subsequent dSYM files are in a folder in this directory). I added the appropriate arguments to my program, and then click the record button.

Now it successfully records the run, and I see that my program is executed correctly in the console. But under my symbols, where I should see functions and lines of code, the values โ€‹โ€‹of those symbols that are grayed out are distorted. It looks like this:

Tool output

I read online because it cannot find my character library for a specific application. This dSYM file for my application is located in /working_directory/bin/application.dSYM . So I went to File -> Symbols , and this shows: Character Menu

So, I clicked on the sh icon and located application.dSYM . However, when selected, I get the error message: No new libraries to symbolicate: The specified path didn't locate a dSYM for any of the selected libraries.

I'm not sure how I can customize my code so that tools can read characters?

+7
c ++ profiling xcode instruments macos
source share

No one has answered this question yet.

See similar questions:

6
Missing character names when profiling in Tools 7

or similar:

51
Missing character names when profiling an iPhone application with tools
33
iOS Instruments - How to download the dSYM file for Swift libraries such as libswift.foundation.dylib?
eleven
Xcode Instruments removes characters, despite all the build settings, opposite
8
How can I connect Instru.app to the command line in OS X?
6
Missing character names when profiling in Tools 7
5
Why can't I export xcode tool data in CSV format? Greyed out option
2
Apple Instruments cannot find dSYM for any of the selected libraries when trying not to show the assembly
one
C time programming in Xcode 7.3
one
DSYM Xcode 5 file not found in tools
one
Profiling an application using Cocoa Touch Framework in Tools does not display characters

All Articles