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.
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.
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/Instruments
© 2022 - 2024 — McMap. All rights reserved.
Instruments
as root (i.e.sudo open /Path/To/Instruments.app
) and attach to the process. – Hyadessudo /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/MacOS/Instruments
instead ofopen
though) – Peptize