|
@@ -179,7 +179,10 @@ static int hpp__color_baseline(struct perf_hpp *hpp, struct hist_entry *he)
|
|
|
{
|
|
|
double percent = baseline_percent(he);
|
|
|
|
|
|
- return percent_color_snprintf(hpp->buf, hpp->size, " %6.2f%%", percent);
|
|
|
+ if (he->pair)
|
|
|
+ return percent_color_snprintf(hpp->buf, hpp->size, " %6.2f%%", percent);
|
|
|
+ else
|
|
|
+ return scnprintf(hpp->buf, hpp->size, " ");
|
|
|
}
|
|
|
|
|
|
static int hpp__entry_baseline(struct perf_hpp *hpp, struct hist_entry *he)
|
|
@@ -187,7 +190,10 @@ static int hpp__entry_baseline(struct perf_hpp *hpp, struct hist_entry *he)
|
|
|
double percent = baseline_percent(he);
|
|
|
const char *fmt = symbol_conf.field_sep ? "%.2f" : " %6.2f%%";
|
|
|
|
|
|
- return scnprintf(hpp->buf, hpp->size, fmt, percent);
|
|
|
+ if (he->pair || symbol_conf.field_sep)
|
|
|
+ return scnprintf(hpp->buf, hpp->size, fmt, percent);
|
|
|
+ else
|
|
|
+ return scnprintf(hpp->buf, hpp->size, " ");
|
|
|
}
|
|
|
|
|
|
static int hpp__header_samples(struct perf_hpp *hpp)
|