profiling for Coldfire

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

profiling for Coldfire

2,384件の閲覧回数
king
Contributor I
I tried to do profiling in CodeWarrior for a Coldfire platform, with simulator only. What I did is, added files timer.c, timer_simulator.c, Profiler.h, ProfilerTimer.h, ProfilerLibrary_4i_CF_Runtime.a to the project, and added the following lines to a C file:
   #include "Profiler.h"
   ProfilerInit(collectDetailed, bestTimeBase,3,3);
   ProfilerClear();
   ProfilerSetStatus(1);
   Function();
   ProfilerSetStatus(0);
   ProfilerDump("profiledump");
   ProfilerTerm();
 
The profile output profiledump is empty. What did I miss?
Thanks.
 
King
ラベル(1)
タグ(1)
0 件の賞賛
1 返信

764件の閲覧回数
CrasyCat
Specialist III
Hello
I assume you are using CodeWarrior for Coldfire V6.2. Am I right?
There is an example of profiler project in
     {Install}\(CodeWarrior_Examples)\SimpleProfiler
Just open the project SimpleProfiler.mcp and select the Build target "Profiler (5272 - Simulator)". This should be working.
 
Check in your project what you did do differently.
Make sure to check the box "Generate Code for Profiling" in the "Coldfire Processor" configuration Panel.
 
I hope this helps.
 
CrasyCat
0 件の賞賛