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:
parent
58b51dd0c5
commit
788210816d
5 changed files with 290 additions and 0 deletions
|
@ -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
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue