summaryrefslogtreecommitdiff
path: root/tools/eos-profile-tool/eos-profile-cmds.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-01-18 17:09:09 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2018-01-18 17:09:09 +0000
commit05e5db0f0a8e75de68f8baa3a0b59bf398caebf6 (patch)
tree17f9600892c74627b70d402d90c30064ab016179 /tools/eos-profile-tool/eos-profile-cmds.h
parenteadb00a03d4fe599f3dccd6d3330bee598b4464a (diff)
Add CLI tool for loading profiling aptures
Captures of profiling data are saved in a binary format, and we need a tool that can load them and turn them into user readable (or machine readable) data.
Diffstat (limited to 'tools/eos-profile-tool/eos-profile-cmds.h')
-rw-r--r--tools/eos-profile-tool/eos-profile-cmds.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/eos-profile-tool/eos-profile-cmds.h b/tools/eos-profile-tool/eos-profile-cmds.h
new file mode 100644
index 0000000..f06781c
--- /dev/null
+++ b/tools/eos-profile-tool/eos-profile-cmds.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <glib.h>
+
+typedef gboolean (* EosProfileCmdParseArgs) (int argc, char **argv);
+typedef int (* EosProfileCmdMain) (void);
+
+gboolean eos_profile_cmd_help_parse_args (int argc, char **argv);
+int eos_profile_cmd_help_main (void);
+
+const struct {
+ const char *name;
+ const char *description;
+
+ EosProfileCmdParseArgs parse_args;
+ EosProfileCmdMain main;
+} profile_commands[] = {
+ {
+ .name = "help",
+ .description = "Prints help",
+ .parse_args = eos_profile_cmd_help_parse_args,
+ .main = eos_profile_cmd_help_main,
+ },
+
+ { NULL, },
+};