How to measure execution time from the host?

Forum for anything not suitable for the other forums.

How to measure execution time from the host?

Postby dmarquez » Fri Jan 09, 2015 2:32 pm

Hello,
I found on the epiphany sdk functions to obtain the performance counters of the epiphany. But this information is not enough to identify the total execution time of a task. I would like to get the time on the host.
I read that it is possible to do it using the performance counters on the ARM. Is there any easy way to do this? An example would be extremely helpful.

Thanks in advance.
David.
User avatar
dmarquez
 
Posts: 4
Joined: Mon Dec 15, 2014 10:06 pm

Re: How to measure execution time from the host?

Postby sebraa » Fri Jan 09, 2015 4:40 pm

Run your host program through "time", then you get the real (wall-clock) execution time, as well as your host program's CPU time for kernel space and user space. Since the ARM cores running Linux are not a real-time system, whatever you measure is only approximate.

You can also use the common linux functions to measure real time with high granularity (gettimeofday() and friends).
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: How to measure execution time from the host?

Postby dmarquez » Fri Jan 09, 2015 6:09 pm

Hi, The problem is I would like to measure small parts of a program (near the time of execution of a function call itself).
On Intel, I usually use the instruction RDTSC.
I heard that there are a similar instruction on ARM, but It is not so easy to use.
Here is an example on A8: http://stackoverflow.com/questions/3247 ... -processor
Maybe someone here used something like that on parallella platform?
Thanks!
David
User avatar
dmarquez
 
Posts: 4
Joined: Mon Dec 15, 2014 10:06 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 5 guests