#include #define ITERS 100 #include #include "mem.h" int main (int argc, gchar *argv[]) { GstPad *pad; GstPadTemplate *padtempl; long usage1; gint i, iters; gst_alloc_trace_set_flags_all (GST_ALLOC_TRACE_LIVE); gst_init (&argc, &argv); g_mem_profile (); if (argc == 2) iters = atoi (argv[1]); else iters = ITERS; //gst_alloc_trace_print_all (); g_print ("starting pad test\n"); usage1 = vmsize(); pad = gst_pad_new ("padname", GST_PAD_SINK); gst_object_unref (GST_OBJECT (pad)); g_print ("create/unref new pad %ld\n", vmsize()-usage1); for (i=0; i