Romeo Chahine

Coldfire: Profiler dump file empty

Discussion created by Romeo Chahine on Dec 29, 2006
Latest reply on Jan 5, 2007 by CrasyCat
I'm trying to get the profiler to function properly. I am using the CodeWarrior version 6.0 build 8 and am running the mcf5282 processor. The code compiles successfully. When I run the code I do see the profiler window opening the right dumpfile but that file is always empty. So I am not seeing any result. The other issue is (which I think is the main one) the code does not run if the "generate Code for Profiling" is checked! I can't see what I am missing. Here is the section of the code :

#include "profiler.h"
#include "ProfilerTimer.h"

int main(int argc, char *argv[])
{
ProfilerInit(collectDetailed, bestTimeBase, 20, 5);
ProfilerClear();
ProfilerSetStatus(1);
uart_init();
pit_init();
port_init();
fpga_init();
gpt_init();
qspi_init();
qadc_init();
qadc_check_status();
ProfilerSetStatus(0);
ProfilerDump("ProfilerDump_file");
ProfilerTerm();
...

}

thank you
s2c97

Message Edited by CrasyCat on 2007-04-13 11:15 AM

Outcomes