Im trying to do profiling for the code ported to MPC 8540 e500v1 core in Code Warrior Power Architecture 8.8 IDE . Is it possible to do profiling using the simulator for the following target ?
Unfortunately there aren't any built in profilers in CW8.
I tried the following way for profiling function func1(). The functions ProfilerInit() and ProfilerDump() returned zero which indicates dat they have worked successfully. But my problem is dat profilereport.mwp dat i finally gets generated is completely blank and does not contain any profile information. Could you please tell me why is it happening dis way...
err = ProfilerInit(collectDetailed, bestTimeBase,1,1); if (!err) ProfilerClear(); else printf("Profiler failed to initialize\n");
err = ProfilerDump("profilereport");
if (err != 0) printf(" Profiler failed to dump profiler information\n"); else printf("Profile data written to file successfully\n");
return (0); }
Retrieving data ...