summaryrefslogtreecommitdiff
path: root/gst/gstobject.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-01-27 17:50:42 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-01-27 17:54:43 +0100
commit321ee10bd6a3fec0951e93e3e112603693d86c33 (patch)
treeb58fe791a12432dc8a6fa59ddf4a2292a5925248 /gst/gstobject.c
parent27ac781ba6ba4a9acec4dcb57751a4243a7da2ef (diff)
downloadgstreamer-321ee10bd6a3fec0951e93e3e112603693d86c33.tar.gz
trace: rework alloc tracing
Remove trace, we use debug log for that Make alloc trace simpler, removing some methods. Activate alloc trace with a GST_TRACE=3 environment variable. Dump leaked objects atexit. Provide an offset in the object where the GType can be found so that more verbose info can be given for objects. Remove -T option from gst-launch because tracing is now triggered with the environment variable.
Diffstat (limited to 'gst/gstobject.c')
-rw-r--r--gst/gstobject.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gst/gstobject.c b/gst/gstobject.c
index 7863256135..9ce57fdf5d 100644
--- a/gst/gstobject.c
+++ b/gst/gstobject.c
@@ -204,7 +204,8 @@ gst_object_class_init (GstObjectClass * klass)
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
#ifndef GST_DISABLE_TRACE
- _gst_object_trace = gst_alloc_trace_register (g_type_name (GST_TYPE_OBJECT));
+ _gst_object_trace =
+ _gst_alloc_trace_register (g_type_name (GST_TYPE_OBJECT), 0);
#endif
gobject_class->set_property = gst_object_set_property;
@@ -256,7 +257,7 @@ gst_object_init (GstObject * object)
GST_CAT_TRACE_OBJECT (GST_CAT_REFCOUNTING, object, "%p new", object);
#ifndef GST_DISABLE_TRACE
- gst_alloc_trace_new (_gst_object_trace, object);
+ _gst_alloc_trace_new (_gst_object_trace, object);
#endif
object->flags = 0;
@@ -451,7 +452,7 @@ gst_object_finalize (GObject * object)
g_mutex_clear (&gstobject->lock);
#ifndef GST_DISABLE_TRACE
- gst_alloc_trace_free (_gst_object_trace, object);
+ _gst_alloc_trace_free (_gst_object_trace, object);
#endif
((GObjectClass *) gst_object_parent_class)->finalize (object);