原创 AXD之profile问题“Not same data in armprof”

2009-4-17 21:00 1776 3 3 分类: MCU/ 嵌入式

初次使用ADS。在AXD中不知为何在命令行输入“armprof  *.prf”时出现错误。后来查看\ARM\ADSv1_2\PDF下的“ADS_DebugTargetGuide_D.pdf”关于profiling一段才知道要设置断点。菜鸟。。。


Profiling
Profiling involves sampling the program counter at specific time intervals. The resulting information is used to build up a picture of the percentage of time spent in each procedure. By using the armprof command-line tool on the data generated by AXD, you can see how to make the program more efficient.
Note
Profiling is supported by ARMulator, RealMonitor, and Angel, but not by
EmbeddedICE or Multi-ICE.
To collect profiling information when executing an image, you must specify profiling settings when you first load the image (see Load Image... on page 5-7) or before reloading the image (see Image pop-up menu on page 5-51):
Flat profiling Flat profiling accumulates limited information without altering the image.
Call graph profiling Call graph profiling accumulates more detailed information but has to add extra code to the image.
To collect profiling information:
1. Load your image file, having made the appropriate profiling settings.
2. Select Options → Profiling → Toggle Profiling if necessary to ensure that Toggle Profiling is checked in the Profiling submenu of the Options menu.
3. Execute your program.
4. Select Options → Profiling → Write to File when the image terminates.
5. A Save dialog appears. Enter a file name and a directory as necessary.
6. Click the Save button.
Note
You cannot display profiling information in AXD. Use the Profiling functions on the Options menu to capture profiling information, then use the armprof command-line.


 

PARTNER CONTENT

文章评论0条评论)

登录后参与讨论
EE直播间
更多
我要评论
0
3
关闭 站长推荐上一条 /3 下一条