[Bug 765052] tracer: add (mini) object leak tracer

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Jun 1 12:39:44 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=765052

--- Comment #58 from Guillaume Desmottes <gdesmott at gnome.org> ---
Review of attachment 328873:
 --> (https://bugzilla.gnome.org/review?bug=765052&attachment=328873)

::: plugins/tracers/Makefile.am
@@ +24,2 @@
   gststats.c \
+  gsttracers.c

done.

::: plugins/tracers/gstleaks.c
@@ +26,3 @@
+ * alive when program is exiting and raising a warning.
+ * The type of objects tracked can be filtered using the parameters of the
+ * tracer, for example: GST_TRACERS="leaks(GstEvent,GstMessage)

fixed.

@@ +132,3 @@
+handle_object_created (GstLeaksTracer * self, gpointer object, GType type)
+{
+  if (!should_handle_object (self, object))

done.

@@ +152,3 @@
+  GstLeaksTracer *self = GST_LEAKS_TRACER (tracer);
+
+  handle_object_created (self, object, GST_MINI_OBJECT_TYPE (object));

I hate duplicating code so I added an extra arg instead to avoid the extra
check.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list