Hi Ti,
我通过 pthread_create() 创建了一个线程,并且通过 pthread_attr_getstacksize() 获取了其总 stack 大小。但是我还想获取实时使用了多少的 stack,请问有什么接口吗?
(我看到通过 Task_create() 创建的任务可以通过 Task_stat() 函数获取 stack 的实时使用情况)
谢谢~
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.
Hi Ti,
我通过 pthread_create() 创建了一个线程,并且通过 pthread_attr_getstacksize() 获取了其总 stack 大小。但是我还想获取实时使用了多少的 stack,请问有什么接口吗?
(我看到通过 Task_create() 创建的任务可以通过 Task_stat() 函数获取 stack 的实时使用情况)
谢谢~
可以使用CCS ROV查看stack的使用情况:https://software-dl.ti.com/ccs/esd/documents/rov_guide/html/src/rov.html
Hi Kevin,
ROV 只是在 debug 的情况下可以看到,我想在工程实际工作中通过 log 形式将这个信息打印出来,这个可以实现吗?