using traceTASK_SWITCHED_OUT

micron
Posts: 8
Joined: Thu Nov 09, 2023 7:09 pm

using traceTASK_SWITCHED_OUT

Postby micron » Thu Nov 09, 2023 7:27 pm

Hello,

I'm new to the ESP32-S3, but have had lots of experience with FreeRTOS. I want to use the capability to hook the scheduler in order to accumulate run times of tasks per core. I have done this before on another platform, but can't figure out what I'm missing in the ESP-IDF V5.1.1 that makes this work.

Normally, I would put this in FreeRTOSConfig.h, but since this file has been removed from the programmer's access, how do I get this into the build?

Code: Select all

extern  void taskCoreRunTime(int bOut);
#define traceTASK_SWITCHED_OUT() taskCoreRunTime(1)
#define traceTASK_SWITCHED_IN() taskCoreRunTime(0)

Who is online

Users browsing this forum: Bing [Bot] and 111 guests