control flow view works (state computation disabled)
[lttv.git] / ltt / branches / poly / lttv / lttv / stats.h
index 37d3694530271b5656eecc8c4fe6826ab54bdfcd..aba1a68b2c24b5f7e5be9a6c3841fe189df661af 100644 (file)
 /* The various statistics branch names are GQuarks. They are pre-computed for
    easy and efficient access */
 
+#define LTTV_PRIO_STATS_BEFORE_STATE LTTV_PRIO_STATE-5
+#define LTTV_PRIO_STATS_AFTER_STATE LTTV_PRIO_STATE+5
+
 extern GQuark
   LTTV_STATS_PROCESS_UNKNOWN,
   LTTV_STATS_PROCESSES,
@@ -146,10 +150,17 @@ typedef struct _LttvTraceStatsClass LttvTraceStatsClass;
 typedef struct _LttvTracefileStats LttvTracefileStats;
 typedef struct _LttvTracefileStatsClass LttvTracefileStatsClass;
 
-gboolean lttv_stats_add_event_hooks(LttvTracesetStats *self);
 
-gboolean lttv_stats_remove_event_hooks(LttvTracesetStats *self);
 
+// Hook wrapper. call_data is a trace context.
+gboolean lttv_stats_hook_add_event_hooks(void *hook_data, void *call_data);
+void lttv_stats_add_event_hooks(LttvTracesetStats *self);
+
+// Hook wrapper. call_data is a trace context.
+gboolean lttv_stats_hook_remove_event_hooks(void *hook_data, void *call_data);
+void lttv_stats_remove_event_hooks(LttvTracesetStats *self);
+
+gboolean lttv_stats_sum_traceset_hook(void *hook_data, void *call_data);
 void lttv_stats_sum_traceset(LttvTracesetStats *self);
 
 void lttv_stats_sum_trace(LttvTraceStats *self);
This page took 0.023182 seconds and 4 git commands to generate.