Question:
Is there any tool in the Visual DSP that can monitor the thread occupied time?
Answer:
Retrieving the cycle count information for a given thread can be returned by using GetThreadCycleData() for Blackfin and TigerSharc processor. To retrieve the cycle data for a SHARC processor, use the GetSharcThreadCycleData() API.
It includes all cycles that occur between a thread being resumed (or started) and it being suspended. Any interrupt-level activity that occurs while the thread is running is included in the running totals.
For more information about GetThreadCycleData() orGetSharcThreadCycleData(), please refer the below VisualDSP++ help path:
VisualDSP++ help >contents >index > GetThreadCycleData()
For SHARC - VisualDSP++ help >contents >index > GetSharcThreadCycleData()