Add a module to compute various statistics
[lttv.git] / ltt / branches / poly / include / lttv / lttv.h
index ad9f3044599e8b6e922fcd8b18ca12becb583311..5017718e10ea8600f224950f07f0bc2e7bb363a1 100644 (file)
@@ -1,38 +1,12 @@
 #ifndef LTTV_H
 #define LTTV_H
 
-#include "attribute.h"
-
-/* Initial draft by Michel Dagenais May 2003
- * Reworked by Mathieu Desnoyers, May 2003
- */
-
+#include <lttv/attribute.h>
 
 /* The modules in the visualizer communicate with the main module and
-   with each other through attributes. There is a global set of attributes as
-   well as attributes attached to each trace set, trace and tracefile. */
-
-lttv_attributes *lttv_global_attributes();
-
-
-
-/* Modules are allowed to define new command line options.
-
-   Each option has a long name (--long_name), a short one character 
-   name (-c), a descriptive text, the argument type, and a
-   pointer to where the argument value will be stored. For an option of
-   type LTTV_OPT_NONE, the argument is a boolean value set to true when the
-   option is present. */
-
-/* Those are already in option.h, cause conflict */
-//typedef enum _lttv_option_type 
-//{LTTV_OPT_NONE, LTTV_OPT_STRING, LTTV_OPT_INT, LTTV_OPT_LONG } 
-//lttv_option_type;
-
-
-//void lttv_option_add(char *long_name, char char_name, char *description, 
-//                    lttv_option_type t, void *p);
+   with each other through attributes. There is a global set of attributes */
 
+LttvAttribute *lttv_global_attributes();
 
 
 /* A number of global attributes are initialized before modules are
@@ -51,31 +25,13 @@ lttv_attributes *lttv_global_attributes();
    /hooks/options/after
        Read the values set by the command line options.
 
-   /hooks/trace_set/before
-       Before any analysis.
-
-   /hooks/trace_set/after
-       After all traces were analyzed.
-
-   /hooks/trace/before
-       Before each trace.
-
-   /hooks/trace/after
-       After each trace.
+   /hooks/main/before
 
-   /hooks/tracefile/before
-       Before each tracefile.
-
-   /hooks/tracefile/after
-       After each tracefile.
-
-   /hooks/event
-       Called for each event
-
-   /hooks/event_id
-       This attribute contains an lttv_hooks_by_id, where the hooks for each
-       id are to be called when an event of the associated type are found.
+   /hooks/main/after
 
 */
 
+#define g_info(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format)
+#define g_debug(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format)
+
 #endif // LTTV_H
This page took 0.034299 seconds and 4 git commands to generate.