perf c2c report: Call calc_width() only for displayed entries
authorJiri Olsa <jolsa@kernel.org>
Fri, 9 Mar 2018 10:14:39 +0000 (11:14 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Mar 2018 16:53:13 +0000 (13:53 -0300)
commitbc229c21f2c79ef0f7b30d3a2fce8c2886ffa6c7
tree7935c29222e94db0d432589b138f548fcf05d094
parent3773138828b38f3f1364ef318cd876b16182388a
perf c2c report: Call calc_width() only for displayed entries

There's no need to calculate column widths for entries that are not
going to be displayed.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Joe Mario <jmario@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20180309101442.9224-7-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-c2c.c