zephyr/include/debug
Anas Nashif 802d214582 debug: analyzer: add support for thread runtime stats
Add thread runtime statistics to the thread analyser.

With CONFIG_THREAD_RUNTIME_STATS enabled:

Booting from ROM..*** Booting Zephyr OS build zephyr-v2.4.0-2330-g77be0e93e65b  ***
thread_a: Hello World from cpu 0 on qemu_x86!
Thread analyze:
 thread_b            : STACK: unused 740 usage 284 / 1024 (27 %); CPU: 0 %
 thread_analyzer     : STACK: unused 8 usage 504 / 512 (98 %); CPU: 0 %
 thread_a            : STACK: unused 648 usage 376 / 1024 (36 %); CPU: 98 %
 idle 00             : STACK: unused 204 usage 116 / 320 (36 %); CPU: 0 %
thread_b: Hello World from cpu 0 on qemu_x86!
thread_a: Hello World from cpu 0 on qemu_x86!
thread_b: Hello World from cpu 0 on qemu_x86!
thread_a: Hello World from cpu 0 on qemu_x86!
thread_b: Hello World from cpu 0 on qemu_x86!
thread_a: Hello World from cpu 0 on qemu_x86!
thread_b: Hello World from cpu 0 on qemu_x86!
thread_a: Hello World from cpu 0 on qemu_x86!
Thread analyze:
 thread_b            : STACK: unused 648 usage 376 / 1024 (36 %); CPU: 7 %
 thread_analyzer     : STACK: unused 8 usage 504 / 512 (98 %); CPU: 0 %
 thread_a            : STACK: unused 648 usage 376 / 1024 (36 %); CPU: 9 %
 idle 00             : STACK: unused 204 usage 116 / 320 (36 %); CPU: 82 %
thread_b: Hello World from cpu 0 on qemu_x86!

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2020-12-14 13:00:47 -05:00
..
coredump.h coredump: add support for ARM Cortex-M 2020-08-24 20:28:24 -04:00
gcov.h include: gcov: fix compilation error 2019-07-03 07:19:49 -07:00
gdbstub.h debug: x86: Add gdbstub for X86 2020-09-02 20:54:57 -04:00
object_tracing.h kernel: remove k_alert API 2019-01-16 21:34:07 -05:00
object_tracing_common.h object tracing: Fix the issue that objects lost from trace list 2019-11-14 09:13:56 -05:00
stack.h include: debug: remove old stack functions 2020-03-14 13:10:19 -04:00
thread_analyzer.h debug: analyzer: add support for thread runtime stats 2020-12-14 13:00:47 -05:00
tracing.h tracing: move headers under include/tracing 2020-02-07 15:58:05 -05:00