Add spaces where columns are too close
authorJulien Desfossez <jdesfossez@efficios.com>
Fri, 26 Feb 2016 18:15:43 +0000 (13:15 -0500)
committerJulien Desfossez <jdesfossez@efficios.com>
Fri, 26 Feb 2016 18:17:35 +0000 (13:17 -0500)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
lttnganalyses/cli/cputop.py
lttnganalyses/cli/sched.py

index a272b6ea0b2b124b623b0726ee854634a2fdf601..0a21c6e9172e0fce7fb61c32c5d79d02cbc31109 100644 (file)
@@ -188,7 +188,7 @@ class Cputop(Command):
         return result_table
 
     def _print_per_tid_usage(self, result_table):
-        row_format = '{:<25} {:>10} {}'
+        row_format = '  {:<25} {:>10}   {}'
         label_header = row_format.format('Process', 'Migrations', 'Priorities')
 
         def format_label(row):
index 45389e6edbe9cdc33aef4041967538be8e0fd7a2..24ce1f69d96245b33b8fc0086be9cc4790398849 100644 (file)
@@ -705,8 +705,8 @@ class SchedAnalysisCommand(Command):
         return common.ns_to_hour_nsec(ts, self._args.multi_day, self._args.gmt)
 
     def _print_sched_events(self, result_table):
-        fmt = '[{:<18}, {:<18}] {:>15} {:>10} {:>3} {:<25}  {:<25}'
-        title_fmt = '{:<20} {:<19} {:>15} {:>10} {:>3} {:<25}  {:<25}'
+        fmt = '[{:<18}, {:<18}] {:>15} {:>10}  {:>3}   {:<25}  {:<25}'
+        title_fmt = '{:<20} {:<19} {:>15} {:>10}  {:>3}   {:<25}  {:<25}'
         print()
         print(result_table.title)
         print(title_fmt.format('Wakeup', 'Switch', 'Latency (us)', 'Priority',
@@ -758,7 +758,7 @@ class SchedAnalysisCommand(Command):
                 print(row_str)
 
     def _print_per_tid_stats(self, stats_table):
-        row_format = '{:<25} {:>8}  {:>12}  {:>12}  {:>12}  {:>12} {}'
+        row_format = '{:<25} {:>8}  {:>12}  {:>12}  {:>12}  {:>12}   {}'
         header = row_format.format(
             'Process', 'Count', 'Min', 'Avg', 'Max', 'Stdev', 'Priorities'
         )
This page took 0.026047 seconds and 5 git commands to generate.