Profiling In Code Warrior Power  Architecture  8.8

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Profiling In Code Warrior Power  Architecture  8.8

1,033 次查看
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 ?

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

832 次查看
genuap
NXP Employee
NXP Employee

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

0 项奖励
回复

832 次查看
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 项奖励
回复