Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Time profiler doesn't show me functions

In tutorial, when someone debug app they see something like this:

enter image description here

But when i start recording, by pressing red button:

enter image description here

I see this...

like image 265
Arti Avatar asked Feb 07 '26 03:02

Arti


2 Answers

Make sure the Generate Debug Symbols build setting is set to Yes. You need debug symbols to have function names appear in Instruments.

If your project is generating debug symbols, Instruments may not be able to find your project's dSYM file. In Instruments choose Instrument > Call Tree Data Mining > Locate dSYM file to find and open your project's dSYM file. Your project's dSYM file is usually located in the same directory as the application bundle of your project's release version. Additional information can be found in the following article:

Instruments: Locating dSYM Files

like image 173
Swift Dev Journal Avatar answered Feb 09 '26 15:02

Swift Dev Journal


I had 2 different versions of Xcode 9.4.1 and 10.1 both of them had command line tools which were in conflict(i suppose). To fix this issue I set right command line tools version there:

"Xcode -> Preferences -> Locations tab -> Command line tools".

xcode Preferences

Also check Build Settings and set "DWARF with dSYM File" to your target.

Build Settings

like image 24
Nosov Pavel Avatar answered Feb 09 '26 17:02

Nosov Pavel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!