Launch Instruments from the Dock
Instruments can be launched from the Xcode icon in the Dock.
To launch Instruments from the Xcode icon in the Dock
- Open Xcode.
- Control-click the Xcode icon in the Dock, and then choose Options > Open Developer Tool > Instruments from the shortcut menu.
dock_xcode_contextualmenu_instruments.png
也就是在Dock 按住 Xcode 一段時間后彈出窗口。
Instruments launches and its icon appears in your Dock.
讓 Instruments 啟動icon 保留在 Dock 中
instruments_app_icon.png
- Control-click the Instruments icon in the Dock, and then choose Options > Keep in Dock from the shortcut menu.
instruments_dock_contextual_menu_options_keepindock
Launch Instruments from Launchpad
Launchpad 自動顯示您的應(yīng)用程序料滥。由于Instruments不在應(yīng)用程序文件夾(至少不是直接在Xcode,它是在應(yīng)用程序文件夾),它沒有出現(xiàn)在 Launchpad柑爸。但是矢劲,您可以通過為工具創(chuàng)建一個別名并將其放入應(yīng)用程序文件夾中來添加它楞泼。
To add Instruments to Launchpad
- Open Xcode.
- Choose Xcode > Open Developer Tool > Instruments.
xcode_instruments_menu
Instruments launches and its icon appears in your Dock.
- Control-click the Instruments icon in the Dock, and then choose Options > Show in Finder from the shortcut menu.
instruments_dock_contextual_menu_options
Option-Command-drag 將instruments應(yīng)用程序圖標(biāo)拖到應(yīng)用程序文件夾中。
創(chuàng)建了一個instruments別名并添加到應(yīng)用程序文件夾中他膳。
從instruments別名的文件名中刪除別名后綴。
instruments現(xiàn)在出現(xiàn)在Launchpad绒窑。
Launch Instruments from the Command Line
You can use the open command to launch any app in OS X via Terminal.
To launch Instruments using the open command line tool
- 1棕孙、Launch Terminal (in /Applications/Utilities/).
- 2、Run the following command:
open /Applications/Xcode.app/Contents/Applications/Instruments.app
The Instruments app launches.