I am trying to configure Instruments to log all the files that has been opened by my application but I cannot get it to work.
What I am doing (from within Xcode, debugging my application):
- Select Product > Profile from the menu.
- Create new Activity Monitor instrument.
- Select Instrument > Build new Instrument... from the menu.
- Select System Call for the of type for my proble, and open* for hits.
- Under Record the following data I select arg0 with path as the display name.
- Press save. I now have two instruments. One logging activity, and another with my new instrument.
- Press record button. For testing purposes I've changed to a very simple app that opens a file, writes to it, and quits.
The profiler runs, but no data is recorded. I can see that my application did run and write to the file on disk, but it was not captured.
What am I doing wrong?