Profiling In Code Warrior Power  Architecture  8.8

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Profiling In Code Warrior Power  Architecture  8.8

1,028件の閲覧回数
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 返答(返信)

827件の閲覧回数
genuap
NXP Employee
NXP Employee

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

0 件の賞賛
返信

827件の閲覧回数
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 件の賞賛
返信