RTEMS | Add programmatic interface for data produced by cpuuse (#5105)

Kinsey Moore (@opticron) gitlab at rtems.org
Wed Aug 7 19:28:59 UTC 2024



Kinsey Moore created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5105



## Summary

### Purpose
Currently, the data produced by the 'cpuuse' shell command is output via a printer visitor which makes it hard to consume programmatically as it requires parsing the resulting string. This functionality could be recreated in an application, but it would be better to provide this directly to reduce copying.


### Result
The end result of this feature request should be a cpu_usage_visitor (cpuusagereport.c) that is broken into 2 pieces:
* a visitor that creates the per-task dataset and provides it to a callback
* a printer callback compatible with the new visitor

This would need documentation updates since it provides new public interfaces. This would also need a new test in the testsuite.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5105
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240807/6a67ea06/attachment.htm>


More information about the bugs mailing list