Skip to content

perf diff: Introduce the new rules of colored printing of delta.#147

Open
ppiyakk2 wants to merge 1 commit intomasterfrom
perf/diff_delta_color
Open

perf diff: Introduce the new rules of colored printing of delta.#147
ppiyakk2 wants to merge 1 commit intomasterfrom
perf/diff_delta_color

Conversation

@ppiyakk2
Copy link

@ppiyakk2 ppiyakk2 commented Sep 29, 2016

As you know, there are the common colored printing of percents so overhead(%) can be colored with the rule.
But Delta means difference percents from percents of overhead between two files e.g. perf.data and perf.data.old.
Although the rule is for overhead(%), Delta value also follow the same rule.

So, I think that it would be better to use the new colored rule for the Delta as below.

Increament: background colored in red (e.g. +0.50%)
Decrement: colored in blue (e.g. -5.50%)
Same: default color (e.g. +0.00%)

Instead of percent_color_snprintf() function, use new delta_color_snprintf() function.

Signed-off-by: SeongSoo Cho nexusz99@gmail.com
Cc: Namhyung Kim namhyung@kernel.org
Cc: Jiri Olsa jolsa@kernel.org
Cc: Taeung Song taeung@kosslab.kr

As you know, there are the common colored printing of percents so overhead(%) can be colored with the rule.
But Delta means difference percents from percents of overhead between two files e.g. perf.data and perf.data.old.
Although the rule is for overhead(%), Delta value also  follow the same rule.

So, I think that it would be better to use the new colored rule for the Delta as below.

Increament: background colored in red (e.g. +0.50%)
Decrement: colored in blue (e.g. -5.50%)
Same: default color (e.g. +0.00%)

Instead of percent_color_snprintf() function, use new delta_color_snprintf() function.

Signed-off-by: SeongSoo Cho <nexusz99@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Taeung Song <taeung@kosslab.kr>
@ppiyakk2 ppiyakk2 force-pushed the perf/diff_delta_color branch from 9b21d66 to 41c7681 Compare September 29, 2016 19:36
@DongDongKim
Copy link
Collaborator

I also think so. Using the new colored rule for the Delta can help us to realize variation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments