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 自動顯示您的應用程序。由于Instruments不在應用程序文件夾(至少不是直接在Xcode,它是在應用程序文件夾),它沒有出現在 Launchpad。但是,您可以通過為工具創建一個別名并將其放入應用程序文件夾中來添加它。
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應用程序圖標拖到應用程序文件夾中。
創建了一個instruments別名并添加到應用程序文件夾中。
從instruments別名的文件名中刪除別名后綴。
instruments現在出現在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.