kevin ma

profiling for Coldfire

Discussion created by kevin ma on Mar 16, 2006
Latest reply on Mar 17, 2006 by CrasyCat
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

Outcomes