Profiling In Code Warrior Power  Architecture  8.8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Profiling In Code Warrior Power  Architecture  8.8

466 Views
NeenaB
Contributor I

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 ?

Labels (1)
0 Kudos
2 Replies

265 Views
genuap
NXP Employee
NXP Employee

Unfortunately there aren't any built in profilers in CW8. 

0 Kudos

265 Views
NeenaB
Contributor I

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...

 

int main()

{

          int i,n;

          long err;

      

          err = ProfilerInit(collectDetailed, bestTimeBase,1,1);
          if (!err)
                ProfilerClear();
          else
                printf("Profiler failed to initialize\n");

           ProfilerSetStatus(1);

      

           for(i=0;i<n;i++)

               func1();

           ProfilerSetStatus(0);

           err = ProfilerDump("profilereport");

       

          if (err != 0)
              printf(" Profiler failed to dump profiler information\n");
          else
              printf("Profile data written to file successfully\n");

          ProfilerClear();

          ProfilerTerm();  

          return (0);
    }

0 Kudos