debug: thread_analyzer: align output

The per-thread output after the first stack usage line is not
aligned which makes it harder to decipher the content.
So align them for easier reading.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2024-07-29 11:49:56 -07:00 committed by Anas Nashif
parent b4c455c754
commit aa65842e95

View file

@ -50,14 +50,15 @@ static void thread_print_cb(struct thread_analyzer_info *info)
#ifdef CONFIG_SCHED_THREAD_USAGE
THREAD_ANALYZER_PRINT(
THREAD_ANALYZER_FMT(" : Total CPU cycles used: %llu"),
info->usage.total_cycles);
THREAD_ANALYZER_FMT(" %-20s: Total CPU cycles used: %llu"),
" ", info->usage.total_cycles);
#ifdef CONFIG_SCHED_THREAD_USAGE_ANALYSIS
THREAD_ANALYZER_PRINT(
THREAD_ANALYZER_FMT(
" - Current Frame: %llu; Longest Frame: %llu; Average Frame: %llu"),
info->usage.current_cycles, info->usage.peak_cycles,
" %-20s: Current Frame: %llu;"
" Longest Frame: %llu; Average Frame: %llu"),
" ", info->usage.current_cycles, info->usage.peak_cycles,
info->usage.average_cycles);
#endif
#endif