summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-01-19 20:30:39 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2018-01-19 20:30:39 +0000
commit2ec23f58a2845333726a4c9d1c04bb8fb9ca29ca (patch)
treec1e1673df55b68c4c85aaeeca943991d5f944022
parent7e9fe3cdf56710233c17404a2cb7479d7a8fb156 (diff)
Add missing handler for start time metadata
We need to check all meta data keys.
-rw-r--r--tools/eos-profile-tool/eos-profile-cmd-show.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/eos-profile-tool/eos-profile-cmd-show.c b/tools/eos-profile-tool/eos-profile-cmd-show.c
index f8a0f72..6e71a41 100644
--- a/tools/eos-profile-tool/eos-profile-cmd-show.c
+++ b/tools/eos-profile-tool/eos-profile-cmd-show.c
@@ -254,6 +254,19 @@ eos_profile_cmd_show_main (void)
continue;
}
+ if (g_strcmp0 (name, PROBE_DB_META_START_KEY) == 0)
+ {
+ g_autoptr(GDateTime) dt =
+ g_date_time_new_from_unix_local (g_variant_get_int64 (value));
+ g_autofree char *start_time =
+ g_date_time_format (dt, "%Y-%m-%d %T");
+
+ eos_profile_util_print_message ("INFO", EOS_PRINT_COLOR_BLUE,
+ "Start time: %s",
+ start_time);
+ continue;
+ }
+
const char *file = NULL;
const char *function = NULL;
const char *probe_name = NULL;