diff options
author | Ramkumar Ramachandra <artagnon@gmail.com> | 2014-03-17 10:18:21 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-03-18 17:16:55 -0400 |
commit | 80790e0b7ef768b6591fdf764b62c572b76a5d80 (patch) | |
tree | 6a16d11004bc42cd32dd27d184270698102363d2 /tools | |
parent | 263f89bf7d0f5ba98077dda8df1ff814862ad5ba (diff) |
perf sched: Fixup header alignment in 'latency' output
Before:
---------------------------------------------------------------------------------------------------------------
Task | Runtime ms | Switches | Average delay ms | Maximum delay ms | Maximum delay at |
---------------------------------------------------------------------------------------------------------------
... | | | | |
git:24540 | 336.622 ms | 10 | avg: 0.032 ms | max: 0.062 ms | max at: 115610.111046 s
git:24541 | 0.457 ms | 1 | avg: 0.000 ms | max: 0.000 ms | max at: 0.000000 s
-----------------------------------------------------------------------------------------
TOTAL: | 396.542 ms | 353 |
---------------------------------------------------
After:
-----------------------------------------------------------------------------------------------------------------
Task | Runtime ms | Switches | Average delay ms | Maximum delay ms | Maximum delay at |
-----------------------------------------------------------------------------------------------------------------
... | | | | |
git:24540 | 336.622 ms | 10 | avg: 0.032 ms | max: 0.062 ms | max at: 115610.111046 s
git:24541 | 0.457 ms | 1 | avg: 0.000 ms | max: 0.000 ms | max at: 0.000000 s
-----------------------------------------------------------------------------------------------------------------
TOTAL: | 396.542 ms | 353 |
---------------------------------------------------
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1395065901-25740-1-git-send-email-artagnon@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-sched.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 6a76a07b6789..9ac0a495c954 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c | |||
@@ -1124,7 +1124,7 @@ static void output_lat_thread(struct perf_sched *sched, struct work_atoms *work_ | |||
1124 | 1124 | ||
1125 | avg = work_list->total_lat / work_list->nb_atoms; | 1125 | avg = work_list->total_lat / work_list->nb_atoms; |
1126 | 1126 | ||
1127 | printf("|%11.3f ms |%9" PRIu64 " | avg:%9.3f ms | max:%9.3f ms | max at: %9.6f s\n", | 1127 | printf("|%11.3f ms |%9" PRIu64 " | avg:%9.3f ms | max:%9.3f ms | max at: %13.6f s\n", |
1128 | (double)work_list->total_runtime / 1e6, | 1128 | (double)work_list->total_runtime / 1e6, |
1129 | work_list->nb_atoms, (double)avg / 1e6, | 1129 | work_list->nb_atoms, (double)avg / 1e6, |
1130 | (double)work_list->max_lat / 1e6, | 1130 | (double)work_list->max_lat / 1e6, |
@@ -1527,9 +1527,9 @@ static int perf_sched__lat(struct perf_sched *sched) | |||
1527 | 1527 | ||
1528 | perf_sched__sort_lat(sched); | 1528 | perf_sched__sort_lat(sched); |
1529 | 1529 | ||
1530 | printf("\n ---------------------------------------------------------------------------------------------------------------\n"); | 1530 | printf("\n -----------------------------------------------------------------------------------------------------------------\n"); |
1531 | printf(" Task | Runtime ms | Switches | Average delay ms | Maximum delay ms | Maximum delay at |\n"); | 1531 | printf(" Task | Runtime ms | Switches | Average delay ms | Maximum delay ms | Maximum delay at |\n"); |
1532 | printf(" ---------------------------------------------------------------------------------------------------------------\n"); | 1532 | printf(" -----------------------------------------------------------------------------------------------------------------\n"); |
1533 | 1533 | ||
1534 | next = rb_first(&sched->sorted_atom_root); | 1534 | next = rb_first(&sched->sorted_atom_root); |
1535 | 1535 | ||
@@ -1541,7 +1541,7 @@ static int perf_sched__lat(struct perf_sched *sched) | |||
1541 | next = rb_next(next); | 1541 | next = rb_next(next); |
1542 | } | 1542 | } |
1543 | 1543 | ||
1544 | printf(" -----------------------------------------------------------------------------------------\n"); | 1544 | printf(" -----------------------------------------------------------------------------------------------------------------\n"); |
1545 | printf(" TOTAL: |%11.3f ms |%9" PRIu64 " |\n", | 1545 | printf(" TOTAL: |%11.3f ms |%9" PRIu64 " |\n", |
1546 | (double)sched->all_runtime / 1e6, sched->all_count); | 1546 | (double)sched->all_runtime / 1e6, sched->all_count); |
1547 | 1547 | ||