Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode - How to profile an application as root?

Xcode will allow me to run my application as root (the "Debug Process As" option in the scheme allows you to select "Me" or "root"). How can I run it through the profiler as root?

I'm using Xcode 4.6.3.

like image 291
craig65535 Avatar asked Jan 27 '14 22:01

craig65535


1 Answers

The solution is to run Instruments as root and attach to the process.

To run Instruments as root: sudo /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/MacOS/Ins‌​truments

like image 62
craig65535 Avatar answered Oct 23 '22 11:10

craig65535