summaryrefslogtreecommitdiff
path: root/endless/eosprofile-private.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-01-19 20:00:04 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2018-01-19 20:00:04 +0000
commit552d944f76f1c0961cd2b3bd39fa44eaa8a95f56 (patch)
treebbe9bc2bacfdbbbddbb4d3701fa55f9430b05eef /endless/eosprofile-private.h
parent05e5db0f0a8e75de68f8baa3a0b59bf398caebf6 (diff)
Move private profile symbols into the private header
We are going to re-use them in the profile CLI tool.
Diffstat (limited to 'endless/eosprofile-private.h')
-rw-r--r--endless/eosprofile-private.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/endless/eosprofile-private.h b/endless/eosprofile-private.h
index 5a58233..7c367bd 100644
--- a/endless/eosprofile-private.h
+++ b/endless/eosprofile-private.h
@@ -15,6 +15,8 @@ G_BEGIN_DECLS
#define PROBE_DB_META_START_KEY PROBE_DB_META_BASE_KEY "/start_time"
#define PROBE_DB_META_PROFILE_KEY PROBE_DB_META_BASE_KEY "/profile_time"
+#define PROBE_DB_META_PROBE_TYPE "(sssuua(xx))"
+
typedef struct {
/* element-type (key utf8) (value EosProfileProbe) */
GHashTable *probes;
@@ -33,6 +35,18 @@ typedef struct {
G_LOCK_DEFINE_STATIC (profile_state);
static ProfileState *profile_state;
+struct _EosProfileProbe {
+ char *file;
+ gint32 line;
+ char *function;
+ char *name;
+
+ /* element-type ProfileSample */
+ GArray *samples;
+
+ GMutex probe_lock;
+};
+
typedef struct {
gint64 start_time;
gint64 end_time;