Andes Workshop

It is currently Sun Nov 17, 2019 7:45 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: 測量板子的實際性能(performance monitor功能)
PostPosted: Thu May 19, 2011 5:15 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
在vep裡面,
使用profiling功能計算執行程式所需要的cycle數或instruction數。
在板子上,我們可以使用performance monitor的功能來測量實際的cycle數或instruction數。

BSP v310beta User Manual 裡第81頁有程式範例的說明。
我們可以看這個程式學習。
如果在Linux裡,可以用Oprofile這個tool。

另外,在AndeStar system privilege Architecture的9.6.2節 Performance Counter Control Register裡,
有PFM_CTL這個暫存器的功能說明。

附件是BSP 3.1.0 beta裡的demo.pfm檔案及說明。
下面是執行結果
Attachment:
pfm.gif
pfm.gif [ 31.05 KiB | Viewed 4240 times ]


Attachments:
readme.txt [3.02 KiB]
Downloaded 466 times
demo-pfm.tgz [16.58 KiB]
Downloaded 420 times
Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group