Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

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: How to do profiling in the Vision SDK

Part Number: TDA2E

Hi,

Can I know the steps for profiling in the vision SDK?

  • Hi,

    Use the below API To get current Global time in the units of micro sec's 

    Utils_getCurGlobalTimeInUsec() :  This API should be called in the Bios core only (IPU, DSP, EVE, A15(Bios))

    OSA_getCurGlobalTimeInUsec() :  This API should be called in the Linux core only (A15(Linux))

    Example code for profiling

    UInt64 currTime, prevTime, diffTime;
    
    prevTime = Utils_getCurGlobalTimeInUsec();
    
    MyFunc();
    
    currTime = Utils_getCurGlobalTimeInUsec();
    
    diffTime = currTime - prevTime;
    
    Vps_printf("Time taken by Myfunc is %u\n",diffTime );

    Thanks

    Gaviraju