802d214582
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> |
||
---|---|---|
.. | ||
main.c |