I am trying to write an automated profiling tool which will use XCode Instruments to load and run an iOS game, and gather profile and timing information about the rendered scene in the game. Specifically I want to know how many milliseconds the scene takes to render on the GPU. From what I can gather about Instruments, I can call it in such a way as it will output profile data to a file, for later examination.
I know that the GPU frametime can be viewed if I run the game from XCode and I can see that on the Performance panel of XCode the frame time of both GPU and CPU is displayed. But I cannot find anyway of accessing this information so that I can write it out to a file for examination later.
Is it possible to capture the iOS GPU frame time using XCode or XCode Instruments?
I am currently using XCode Version 4.6.1, and running a Unity 4 app . The built in iOS GPU profiler for Unity is wildly inaccurate - it always shows the GPU frame time as being much higher than shown in the XCode performance panel, and there doesnt seem to be must logic to how this value scales.