Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Absent method calls in Instruments stack trace

I'm trying to profile my app for memory allocations on a device using Instruments. The problem is the profiler shows only native method calls in the stack trace; my own methods don't show up, which makes the stack trace totally useless.

Instruments Screen Shot

I'm using XCode 6.4 and the device is an iPhone 5c running iOS 8.4.

Any help would be appreciated.

like image 591
ALTN Avatar asked Apr 12 '15 17:04

ALTN


1 Answers

The issue was due to a .dSYMM file generated by XCode as part of the build. The file is used in debug mode to symbolicate method calls. Instruments doesn't seem to be aware of its location. In order to fix that I had to do the following:

  • Before starting to record under instruments, go to File->Symbols
  • Unfold your app item and select your app name
  • Click "Locate" in front of dSYM path
  • the dSYM file corresponding to the app should be under ~/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/[APP_NAME].app.dSYM.
  • A dialog should pop up asking you whether Instruments should always look for dSYM files under that location; that's what you want
  • Start recording; your method calls should now display properly
like image 58
ALTN Avatar answered Jan 04 '23 06:01

ALTN