cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
abbascit
Contributor
Contributor
7,920 Views
Registered: ‎12-30-2015

measuring the EXECUTION time of the software program !!!!

Jump to solution

Hello,

 

I am using Zedboard and Vivado 2015.4.

In XSDK, i want to measure the time taken by DMA to write or Read data from DDR.

 

I am using following function 

XAxiDma_SimpleTransfer(&dma,(u32)dma_buffer_Rx,dataSize,XAXIDMA_DEVICE_TO_DMA);

to send data to DDR.

 

I want to measure the time taken by this function to execute.

I have used SCU_GLOBAL_TIMER_COUNT_L32  it is giving some number but i don,t know that it is milisecond or microsecond time or something else.


I have also read the following thread:

https://forums.xilinx.com/t5/Embedded-Development-Tools/Execution-time-measurement/m-p/662929#M38320
But its not working for me:.

 

I have tried EDK Profiling.

But there are two problems i am facing.

Firslty i am unable to set profile_timer.

Secondly In SDK, I selected select Run > Run but did not find Enable Profiling there.

please guide how i can measure the time which some function(in my case DMA) takes to read or write data.
So that i can measure that what is speed per second of DMA.

I am waiting for your kind reply.

 

I will be very thankful to you.

 

Regards

Abbas

0 Kudos
1 Solution

Accepted Solutions
abbascit
Contributor
Contributor
12,644 Views
Registered: ‎12-30-2015

Hello sampatd,

 

Thanks for your reply. 

I have done TCF profiler. But i don,t know what it is showing.can you explain what is meaning of %Exclusive and %inclusive? How it is showing the execution time for a function?

 

Waiting for your reply.

View solution in original post

statistics.JPG
0 Kudos
3 Replies
sampatd
Scholar
Scholar
7,759 Views
Registered: ‎09-05-2011
abbascit
Contributor
Contributor
12,645 Views
Registered: ‎12-30-2015

Hello sampatd,

 

Thanks for your reply. 

I have done TCF profiler. But i don,t know what it is showing.can you explain what is meaning of %Exclusive and %inclusive? How it is showing the execution time for a function?

 

Waiting for your reply.

View solution in original post

statistics.JPG
0 Kudos
sampatd
Scholar
Scholar
7,496 Views
Registered: ‎09-05-2011
% Exclusive would be the percentage of samples encountered by the profiler for that function only (doesn’t take into consideration samples of child functions). This can also be seen as exclusive percentage for that particular function. This parameter can be of help in identifying performance bottlenecks.
% Inclusive is the percentage of samples of a function, including samples collected during execution of child functions.
0 Kudos