Commit aa65842e authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

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: default avatarDaniel Leung <daniel.leung@intel.com>
parent b4c455c7
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -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