Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for vTaskList() in Arduino core so we can monitor task status #7179

Closed
1 task done
osamahnini opened this issue Aug 24, 2022 · 18 comments
Closed
1 task done
Assignees
Labels
Status: Solved Type: Feature request Feature request for Arduino ESP32
Milestone

Comments

@osamahnini
Copy link

Related area

FreeRTOS

Hardware specification

All esp32 devices

Is your feature request related to a problem?

No

Describe the solution you'd like

Current when you use vTaskList() FreeRTOS API and try to compile, you get this error: "undefined reference".
The runtime stats must be enabled in FreeRTOS so you can use this API. I think the solution is to enable runtime stats by default.

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.
@osamahnini osamahnini added the Type: Feature request Feature request for Arduino ESP32 label Aug 24, 2022
@me-no-dev me-no-dev added the Status: Needs investigation We need to do some research before taking next steps on this issue label Aug 25, 2022
@me-no-dev
Copy link
Member

We need to check if this will cause any performance/memory degradation first.

@qnxsgwy
Copy link

qnxsgwy commented Sep 8, 2022

If can view the cpu usage, is very useful for debugging, hope to support this function.
But performance degradation also needs attention,hopefully as an option that can be on/off at compile time.

@fknrdcls
Copy link

fknrdcls commented Sep 9, 2022

Well, I'm no stranger to squeezing performance out of the ESP32 and I use it by default on my projects.
48kHz stereo realtime MP3 encoder: https://www.esp32.com/viewtopic.php?f=2&t=9186
Using it to gauge performance really didn't notice any issues at all. I think there is certainly more benefit than potential issues. Also Arduino being something that is also used as a learning tool, it would be extremely beneficial to allow users to see tasks usage and CPU affinity. Happy to add an example if it's added.
This applies to vTaskList & vTaskGetRunTimeStats().
This keeps coming up here as a feature request by different people, it's probably not going away...

@davepl
Copy link

davepl commented Sep 16, 2022

I too would very much appreciate this support in the Arudino variant... just hit this omission myself!

@zekageri
Copy link

+1

@szerwi
Copy link

szerwi commented Nov 1, 2022

+1, I would also need that feature in my project

@VojtechBartoska VojtechBartoska added this to the 3.0.0 milestone Nov 7, 2022
@VojtechBartoska VojtechBartoska added the Status: Awaiting triage Issue is waiting for triage label Nov 7, 2022
@everslick
Copy link
Contributor

me 2

@yekomS
Copy link

yekomS commented Dec 4, 2022

also need this feature and vTaskGetRunTimeStats() :-)

@marnov999
Copy link

so any new info on this? I would need it too, or maybe some way to recompile the lib ourself with the feature enabled?

@davepl
Copy link

davepl commented Dec 31, 2022 via email

@bobemoe
Copy link

bobemoe commented Feb 22, 2023

Yeah defo missing this too, just started using RTOS tasks, and need a way to list and monitor them. This looks like just the ticket.

@synologic
Copy link

All, this has been discussed all over the internet for quite a while now, we should get it :)

@VojtechBartoska
Copy link
Contributor

VojtechBartoska commented Feb 7, 2024

Hello all, changing this to 3.1.0 milestone, we are starting investigating if this is doable and let you know.

@lucasssvaz will do the research and share the updates later here.

@VojtechBartoska VojtechBartoska removed the Status: Awaiting triage Issue is waiting for triage label Feb 7, 2024
@lucasssvaz lucasssvaz added the Status: Blocked upstream 🛑 PR is waiting on upstream changes to be merged first label Feb 20, 2024
@lucasssvaz
Copy link
Collaborator

lucasssvaz commented Feb 20, 2024

We'll first need to implement some way to easily reconfigure and recompile the libs for the users. Currently working on that. espressif/esp32-arduino-lib-builder#158

@me-no-dev
Copy link
Member

Will something like that work? #10515 (comment)

@hitecSmartHome
Copy link

It would be the best if it would return or populate an array or json instead of printing it out. That way we could actually do something with the results

@me-no-dev
Copy link
Member

@hitecSmartHome that is up to you to implement. You can use the code in the PR as starting point. Array is already used there and that is what is printed.

@hitecSmartHome
Copy link

I see.

@lucasssvaz lucasssvaz added Status: Solved and removed Status: Needs investigation We need to do some research before taking next steps on this issue Status: Blocked upstream 🛑 PR is waiting on upstream changes to be merged first labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Solved Type: Feature request Feature request for Arduino ESP32
Projects
Development

No branches or pull requests