diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2009-11-17 15:40:54 -0200 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-11-19 06:03:36 +0100 |
| commit | 13cc5079f235906e60577dbce8da2f9607e67e93 (patch) | |
| tree | 46e38168af043489b657b9d2715b4dab0aad1428 /scripts | |
| parent | cfc10d3bcc50d70f72c0f43d03eee965c726ccc0 (diff) | |
perf top: Auto adjust symbol and dso widths
We pre-calculate the symbol name length, then after we sort the
entries to print, calculate the biggest one and use that for the
symbol name width justification, then use the
dso->long_name->len to justificate the DSO name, deciding whether
using the short or long name depending on how much space we have
on the terminal.
IOW give as much info to the user as the terminal width allows.
Suggested-by: Ingo Molnar <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frédéric Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions