Skip to content

Commit ae23f23

Browse files
committed
Update docstubs stubs for preview
1 parent fa4d6bd commit ae23f23

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

stubs/micropython-v1_26_0_preview-docstubs/modules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"firmware": "micropython-v1_26_0_preview",
99
"nodename": "micropython",
1010
"version": "v1.26.0-preview",
11-
"release": "v1.26.0-preview-38-g6406afb1f",
11+
"release": "v1.26.0-preview-45-gf9a755c91",
1212
"sysname": "micropython"
1313
},
1414
"stubber": {

stubs/micropython-v1_26_0_preview-docstubs/zephyr/__init__.pyi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def current_tid() -> Incomplete:
3333

3434
def thread_analyze() -> Incomplete:
3535
"""
36-
Runs the Zephyr debug thread analyzer on the current thread and prints stack size statistics in the format:
36+
Runs the Zephyr debug thread analyzer on the current thread on the given cpu
37+
and prints stack size statistics in the format:
3738
3839
"``thread_name``-20s: STACK: unused ``available_stack_space`` usage ``stack_space_used``
3940
/ ``stack_size`` (``percent_stack_space_used`` %); CPU: ``cpu_utilization`` %"
@@ -43,6 +44,9 @@ def thread_analyze() -> Incomplete:
4344
This function can only be accessed if ``CONFIG_THREAD_ANALYZER`` is configured for the port in ``zephyr/prj.conf``.
4445
For more information, see documentation for Zephyr `thread analyzer
4546
<https://docs.zephyrproject.org/latest/guides/debug_tools/thread-analyzer.html#thread-analyzer>`_.
47+
48+
Note that the ``cpu`` argument is only used in Zephyr v4.0.0 and
49+
newer and ignored otherwise.
4650
"""
4751
...
4852

0 commit comments

Comments
 (0)