X-Git-Url: http://nitlanguage.org diff --git a/clib/traces.h b/clib/traces.h index 1b88f68..b34af65 100644 --- a/clib/traces.h +++ b/clib/traces.h @@ -8,18 +8,32 @@ #define _TRACES_H #include +#include 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