Merge: doc: fixed some typos and other misc. corrections
[nit.git] / clib / traces.h
index 1b88f68..b34af65 100644 (file)
@@ -8,18 +8,32 @@
 #define _TRACES_H
 
 #include <lttng/tracepoint.h>
+#include <gc.h>
 
 TRACEPOINT_EVENT(
-    Nit_Compiler,
-    Object_Instance,
-    TP_ARGS(
-        char*, object_class_arg,
-        int, object_id_arg
-    ),
-    TP_FIELDS(
-        ctf_string(object_class, object_class_arg)
-        ctf_integer(int, object_id, object_id_arg)
-    )
+       Nit_Compiler,
+       Object_Instance,
+       TP_ARGS(
+               char*, object_class_arg,
+               int, object_id_arg
+       ),
+       TP_FIELDS(
+               ctf_string(object_class, object_class_arg)
+               ctf_integer(int, object_id, object_id_arg)
+       )
+)
+
+TRACEPOINT_EVENT(
+       Nit_Compiler,
+       Object_Destroy,
+       TP_ARGS(
+               char*, object_class_arg,
+               int, object_id_arg
+       ),
+       TP_FIELDS(
+               ctf_string(object_class, object_class_arg)
+               ctf_integer(int, object_id, object_id_arg)
+       )
 )
 
 #endif