#include <lttv/hook.h>
#include <lttv/event.h>
#include <ltt/ltt.h>
+#include <ltt/time.h>
#include <lttv/trace.h>
/* A traceset is a set of traces to be analyzed together. */
/* In babeltrace, the position concept is an iterator. */
struct _LttvTracesetPosition {
struct bt_ctf_iter *iter;
+ struct bt_iter_pos *bt_pos;
};
/* Tracesets may be added to, removed from and their content listed. */
LttvTrace *lttv_trace_new(LttTrace *t);
#endif
+void get_absolute_pathname(const gchar *pathname, gchar * abs_pathname);
+
LttvTraceset *lttv_traceset_copy(LttvTraceset *s_orig);
LttvTraceset *lttv_traceset_load(const gchar *filename);
/*
* lttv_trace_create : Add all traces recursively to a traceset from a path
*
+ *
* ts is the traceset in which will be contained the traces
*
* trace_path is the path where to find a set of trace.
LttvAttribute *lttv_traceset_attribute(LttvTraceset *s);
-
-#ifdef BABEL_CLEANUP
-LttTrace *lttv_trace(LttvTrace *t);
-#endif
-
/* Take a position snapshot */
LttvTracesetPosition *lttv_traceset_create_position(LttvTraceset *traceset);
void lttv_traceset_seek_to_position(LttvTracesetPosition *traceset_pos);
guint lttv_traceset_get_cpuid_from_event(LttvEvent *event);
+/* Returns the minimum timestamp of the traces in the traceset */
+guint64 lttv_traceset_get_timestamp_begin(LttvTraceset *traceset);
+/* Returns the maximum timestamp of the traces in the traceset */
+guint64 lttv_traceset_get_timestamp_end(LttvTraceset *traceset);
+/* Returns a TimeInterval struct that represents the min and max of the traceset */
+TimeInterval lttv_traceset_get_time_span(LttvTraceset *traceset);
const char *lttv_traceset_get_name_from_event(LttvEvent *event);