diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2018-01-19 20:00:04 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2018-01-19 20:00:04 +0000 |
commit | 552d944f76f1c0961cd2b3bd39fa44eaa8a95f56 (patch) | |
tree | bbe9bc2bacfdbbbddbb4d3701fa55f9430b05eef /endless/eosprofile-private.h | |
parent | 05e5db0f0a8e75de68f8baa3a0b59bf398caebf6 (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.h | 14 |
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; |