summaryrefslogtreecommitdiff
path: root/tools/eos-profile-tool/eos-profile-cmd-show.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-01-22 15:12:24 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2018-01-22 15:12:24 +0000
commiteb46fb93d851295dfffbb290382eaa1cd7426303 (patch)
tree98beef895c0299c39fa59d8b5406b27c344a0c6e /tools/eos-profile-tool/eos-profile-cmd-show.c
parent818f16ff15d72794d4614eb98e77c9fbfd37a464 (diff)
Nest profile output a bit better
The spacing makes it look like a typo.
Diffstat (limited to 'tools/eos-profile-tool/eos-profile-cmd-show.c')
-rw-r--r--tools/eos-profile-tool/eos-profile-cmd-show.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/tools/eos-profile-tool/eos-profile-cmd-show.c b/tools/eos-profile-tool/eos-profile-cmd-show.c
index 6b20ed7..b01bd14 100644
--- a/tools/eos-profile-tool/eos-profile-cmd-show.c
+++ b/tools/eos-profile-tool/eos-profile-cmd-show.c
@@ -80,7 +80,7 @@ print_location (const char *file,
const char *function)
{
eos_profile_util_print_message (NULL, EOS_PRINT_COLOR_NONE,
- " ┕━ • location: %s() at %s:%d",
+ " ┕━ • location: %s() at %s:%d",
function,
file,
line);
@@ -160,12 +160,11 @@ print_samples (const char *name,
g_autofree char *stddev = g_strdup_printf (", σ: %g", s);
eos_profile_util_print_message (NULL, EOS_PRINT_COLOR_NONE,
- " ┕━ • %d samples",
+ " ┕━ • %d samples",
valid_samples->len);
eos_profile_util_print_message (NULL, EOS_PRINT_COLOR_NONE,
- " ┕━ • total time: %d %s,"
- " avg: %g %s, min: %d %s, max: %d %s"
- "%s",
+ " ┕━ • total time: %d %s\n"
+ " ┕━ • avg: %g %s, min: %d %s, max: %d %s%s",
(int) scale_val (total), unit_for (total),
scale_val (avg), unit_for (avg),
(int) scale_val (min_sample), unit_for (min_sample),
@@ -175,16 +174,16 @@ print_samples (const char *name,
else if (valid_samples->len == 1)
{
eos_profile_util_print_message (NULL, EOS_PRINT_COLOR_NONE,
- " ┕━ • 1 sample");
+ " ┕━ • 1 sample");
eos_profile_util_print_message (NULL, EOS_PRINT_COLOR_NONE,
- " ┕━ • total time: %d %s",
+ " ┕━ • total time: %d %s",
(int) scale_val (total),
unit_for (total));
}
else
{
eos_profile_util_print_message (NULL, EOS_PRINT_COLOR_NONE,
- " ┕━ • Not enough valid samples found");
+ " ┕━ • Not enough valid samples found");
}
}