perf annotate TUI: Set appropriate column width for period/percent
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 28 Jul 2017 16:19:32 +0000 (13:19 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 28 Jul 2017 16:19:32 +0000 (13:19 -0300)
commit3861c4a49bea432c57d6e7cbd89c8b71ed4445b7
treee4207890d4d7394a9713a07bbeb0266bc70d856e
parentf67d395c6e3895c3c8c67c8f7523f6a94d61a82d
perf annotate TUI: Set appropriate column width for period/percent

Either when we start 'perf annotate' or 'perf report' with
--show-total-period or when we, in the annotate browser, press 't' to
toggle period/percent for the first column, we need to adjust the width
for the 'period' case.

Based-on-a-patch-by: Taeung Song <treeze.taeung@gmail.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-n2np5qcs20u6qjdr9orygne6@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/annotate.c