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.

[FAQ] [参考译文] [常见问题解答] TDA2E:如何在 Vision SDK 中进行性能评测

Guru**** 2540720 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/942557/faq-tda2e-how-to-do-profiling-in-the-vision-sdk

器件型号:TDA2E

您好!

我能不能知道在 VISION SDK 中进行性能评测的步骤?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    使用以下 API 以 微秒为单位获取当前全局时间  

    utils_getCurGlobalTimeInUsec(): 此 API 只能在 BIOS 内核中调用(IPU、DSP、EVE、A15 (BIOS))

    OSA_getCurGlobalTimeInUsec():  此 API 只能在 Linux 内核中调用(A15(Linux)

    用于性能评测的示例代码

    uint64 currTime、prestTime、diffTime;
    
    prestateTime = Utils_getCurGlobalTimeInUsec ();
    
    MyFunc ();
    
    当前时间= Utils_getCurGlobalTimeInUsec();
    
    扩散时间=当前时间-前推时间;
    
    VPS_printf ("由 Myfunc 花费的时间为%u\n",diffTime); 

    谢谢

    加维拉尤