Andes Workshop http://forum.andestech.com/ |
|
測量板子的實際性能(performance monitor功能) http://forum.andestech.com/viewtopic.php?f=16&t=80 |
Page 1 of 1 |
Author: | cindy [ Thu May 19, 2011 5:15 pm ] | |||
Post subject: | 測量板子的實際性能(performance monitor功能) | |||
在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:
|
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |