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:
parent
b4c455c754
commit
aa65842e95
1 changed files with 5 additions and 4 deletions
|
|
@ -50,14 +50,15 @@ static void thread_print_cb(struct thread_analyzer_info *info)
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_THREAD_USAGE
|
#ifdef CONFIG_SCHED_THREAD_USAGE
|
||||||
THREAD_ANALYZER_PRINT(
|
THREAD_ANALYZER_PRINT(
|
||||||
THREAD_ANALYZER_FMT(" : Total CPU cycles used: %llu"),
|
THREAD_ANALYZER_FMT(" %-20s: Total CPU cycles used: %llu"),
|
||||||
info->usage.total_cycles);
|
" ", info->usage.total_cycles);
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_THREAD_USAGE_ANALYSIS
|
#ifdef CONFIG_SCHED_THREAD_USAGE_ANALYSIS
|
||||||
THREAD_ANALYZER_PRINT(
|
THREAD_ANALYZER_PRINT(
|
||||||
THREAD_ANALYZER_FMT(
|
THREAD_ANALYZER_FMT(
|
||||||
" - Current Frame: %llu; Longest Frame: %llu; Average Frame: %llu"),
|
" %-20s: Current Frame: %llu;"
|
||||||
info->usage.current_cycles, info->usage.peak_cycles,
|
" Longest Frame: %llu; Average Frame: %llu"),
|
||||||
|
" ", info->usage.current_cycles, info->usage.peak_cycles,
|
||||||
info->usage.average_cycles);
|
info->usage.average_cycles);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue