iPhone: Cannot get simulator to generate .gcda profiling data files.

Posted by Derek Clarkson on Stack Overflow See other posts from Stack Overflow or by Derek Clarkson
Published on 2011-01-13T13:40:40Z Indexed on 2011/01/17 3:53 UTC
Read the original article Hit count: 293

Filed under:
|
|

I'm attempting to profile my code using the iPhone simulator. I've enabled Generate Test Coverage File and Instrument Program Flow and added -lgcov to the linker flags. According to everything I've read that should be all I need to do in terms of setup.

Executing the program I can see the .gcno files appearing along side the .o compiled code in the build/.build/Debug-iphonesimulator/.build/Objects-normal/i386 directory.

But when I run the app in the simulator I do not get any *.gcda files appearing.

My understanding is that these files contain the data from the instrumentation. But I cannot find them anywhere on the computer.

I know they can be produced and appear along side the *.gcno files because I have an old trashed buil directory which does have them. I just cannot figure out what I have to do to get them to appear and record the run.

Any help appreciated.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about profiling