Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Performance counters on the iPhone

I'm trying to find the best method of incode performance monitoring on the iPhone.

On a windows platform I would use the following functions :

QueryPerformanceCounter((LARGE_INTEGER *)&ctr);
QueryPerformanceFrequency((LARGE_INTEGER *)&freq);

Does anything like this exist on the iPhone? Whats the highest resolution I can time something without using an external tool such as Instruments or Shark?

like image 653
Oliver Hume Avatar asked Mar 11 '09 11:03

Oliver Hume


People also ask

Is there a task manager for iPhone?

Things is a beautifully designed and intuitive task manager for your iPhone, iPad, and Mac.

What is GPU performance counters?

GPU counters are granular statistics that relate to the specific render, compute, or blit work your app did in the captured frame. To find coding problems or tune your performance, check the counters for hot spots and make adjustments to your app as needed.


1 Answers

I think mach_absolute_time is what you are looking for. For more information:

  • Technical Q&A QA1398: Mach Absolute Time Units
  • Tutorial: Performance and Time
  • mach_ absolute_ time on the iPhone
like image 196
f3lix Avatar answered Sep 23 '22 07:09

f3lix