profiling for Coldfire

cancel
Showing results for 
Search instead for 
Did you mean: 

profiling for Coldfire

1,679 Views
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
Labels (1)
0 Kudos
1 Reply

59 Views
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 Kudos