Software Archive
Read-only legacy content
17061 Discussions

How to get the elapsed time of each function in Amplifier?

paul_shu
Beginner
692 Views
I notice that the elapsed time of each function is not shown in the Bottom-up or Top-down Tree windows. I just can get the elapsed time of entire application on the summary panel. But I really want to know whether Amplifier does support this feature or not? If yes, how I can get these info?
0 Kudos
4 Replies
Peter_W_Intel
Employee
692 Views
Hi,

You can't use Bottom-up report to know total time of function (elapsed time) since that is only for self-time.

You can useTop-down treeto know "CPU Time:Total" forany function, even its self time is zero. It showed as percentage value, you get seconds by using: Elapsed time (from summary panel) * ??%

Regards, Peter
0 Kudos
paul_shu
Beginner
692 Views
Hi Peter,

Thanks for your reply.

But CPU time of a function is not the real elapsed time of this function. For example, a function is divided to two threads to run tasks. I can get: CPU time of this function = CPU Time of Thread1 + CPU Time of Thread2. But this CPU time of this function is not the real elapsed time of this function. Right?

Kind Regards,
Paul
0 Kudos
Peter_W_Intel
Employee
692 Views
Hi Paul,

There is no EXACT elapsed time of the function. For example, functionA and function B may be overlapped in real time, running inmultiple threads (cores), so what I talked is total CPU time.

Summary panel has "elapsed time" - it is real execution time, parallelled from multi-cores.

Regards, Peter
0 Kudos
paul_shu
Beginner
692 Views
Hi Peter,

OK, I got it.

I am appreciate your help.

Paul
0 Kudos
Reply