Basic Instruments.app Demo
February 20, 2008 § Leave a comment
[This is a follow-up to my Rails 2.0 demo]
- In Finder, Double-click to launch /Developer/Applications/Instruments.app
- Select “UI Recorder” for new document
- In toolbar, Select Launch Executable -> Safari.app
- Quit Safari if currently running
- In that instrument, Click “i” for info subwindow
- Configure UI Recorder to NOT Record Mouse Move, Drag
- Open Library from Toolbar
- Select Activity Monitor instrument (e.g., type “act” in Search field)
- In Instrument, select [i] and choose:
- Sample Rate: 2
- Net Bytes In Per Second
- Disk Bytes Read Per Second
- Disk Bytes Written Per Second
- % User Load
- Zoom 4x (move split screen)
- Save
- Click “Record”
Assuming you have already started the app from the last post:
- Type http://localhost:3000/articles into address bar
- Click on “New article”
- Enter title and contents
- Click “Create”
- Click “Back”
- Select “Destroy” for that record
- Quit Safari # ends recording
Finally, zoom into Track to fill window, to show individual actions.
If you’re brave, click “Drive [& Record]” to show that it recorded properly. I haven’t gotten that to work consistently yet, though…