debug: tracing: Add CPU stats module

Change adds CPU stats module for tracing hooks. Module provides
information about percent of CPU usage based on tracing hooks
for threads switching in and out, interrupts enters and exits.
cpu_stats only distinguishes between idle thread, non idle
thread and scheduler.

Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no>
This commit is contained in:
Marek Pieta 2018-11-09 18:29:55 +01:00 committed by Anas Nashif
commit 788210816d
5 changed files with 290 additions and 0 deletions

View file

@ -29,6 +29,10 @@ void z_sys_trace_thread_switched_out(void);
#ifdef CONFIG_SEGGER_SYSTEMVIEW
#include "tracing_sysview.h"
#elif defined CONFIG_TRACING_CPU_STATS
#include "tracing_cpu_stats.h"
#else
/**