This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

代码性能评估中的Profile



利用CCS3.3中的Profile生成的数据中,cycle.CPU: Incl. Total和 cycle.CPU: Excl. Total具体指的什么?如何拿这些数据分析,比如ShapingFilter函数执行花费多少时间?CPU的主频是594MHz.

Address Range  Symbol Name  SLR  Symbol Type  Access Count  cycle.CPU: Incl. Total  cycle.CPU: Excl. Total
0x11c8-0x1300  ShapingFilter  120-146:modemtx.c  function 964 14618340 14618340
0x15d0-0x1778  AddNoiseSignal  272-300:modemtx.c  function 964 64588 64588
0x1778-0x1978  main  309-345:modemtx.c  function 1 29421531 45925
0x1300-0x1350  ModemTransmitter  159-193:modemtx.c  function 964 14652069 33729
0x1598-0x15b4  ReadNextData  251-255:modemtx.c  function 964 103148 19280
0x15b4-0x15d0  ReadConstellation  258-261:modemtx.c  function 964 83868 19280
0x1350-0x1598  Initialize  203-247:modemtx.c  function 1 7453 7453
0x1060-0x10d8  SineLookup  53-70:modemtx.c  function 64 3321 3321
0x10d8-0x1104  CosineLookup  81-84:modemtx.c  function 32 2410 736
  •  Access Count  cycle.CPU: Incl. Total  cycle.CPU: Excl. Total
    964 14618340 14618340
    964 64588 64588
    1 29421531 45925
    964 14652069 33729
    964 103148 19280
    964 83868 19280
    1 7453 7453
    64 3321 3321
    32 2410 736
  • cycle.CPU: Excl. Total    是不包含子函数调用的时钟数

    cycle.CPU: Incl. Total    是包含子函数调用的时钟数

    耗时 = cycle / cpu频率 单位应该是us

     

  • 你好,问个问题。我选中了一段代码添加到range以后,让程序运行,想看看各种参数,结果程序根本不会停下来,也就是说,那些access count,Incl Total, 什么的全是0,只有当我强制停止程序的时候,才会显示数值,当让程序继续运行的时候,程序还是停不下来,一直在我选中的range里面循环,而我的这段代码是没有问题的。