diff options
author | Maureen Helm <maureen.helm@nxp.com> | 2020-05-02 11:21:48 -0500 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-06-12 10:24:01 +1000 |
commit | 38b4f1569e7755f78b991352ae5d53055ad67790 (patch) | |
tree | edb706332b9b82ea2a15c970a50fc2223adab28a /tools/codeformat.py | |
parent | 05e5d411b53dcba9529b6ac1e9388bab65f8c11b (diff) |
zephyr: Fix and rename stacks_analyze function in zephyr module.
Zephyr deprecated and then removed its stack_analyze function because it
was unsafe. Use the new zephyr thread analyzer instead and rename the
MicroPython function to zephyr.thread_analyze() to be more consistent with
the implementation.
Tested on mimxrt1050_evk.
The output now looks like this:
>>> zephyr.thread_analyze()
Thread analyze:
80004ff4 : unused 400 usage 112 / 512 (21 %)
rx_workq : unused 1320 usage 180 / 1500 (12 %)
tx_workq : unused 992 usage 208 / 1200 (17 %)
net_mgmt : unused 656 usage 112 / 768 (14 %)
sysworkq : unused 564 usage 460 / 1024 (44 %)
idle : unused 256 usage 64 / 320 (20 %)
main : unused 2952 usage 1784 / 4736 (37 %)
Diffstat (limited to 'tools/codeformat.py')
0 files changed, 0 insertions, 0 deletions