leakstracer: Remove unused and redundant record fields
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 21 Jun 2019 05:56:38 +0000 (11:26 +0530)
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>
Mon, 1 Jul 2019 13:33:13 +0000 (13:33 +0000)
All leak records are obviously scoped to the process, and nothing in
the GstTracerRecord code uses these fields anyway.

plugins/tracers/gstleaks.c

index 1bab924..189e23f 100644 (file)
@@ -642,33 +642,26 @@ gst_leaks_tracer_finalize (GObject * object)
 #define RECORD_FIELD_TYPE_TS \
     "ts", GST_TYPE_STRUCTURE, gst_structure_new ("value", \
         "type", G_TYPE_GTYPE, GST_TYPE_CLOCK_TIME, \
-        "related-to", GST_TYPE_TRACER_VALUE_SCOPE, GST_TRACER_VALUE_SCOPE_PROCESS, \
         NULL)
 #define RECORD_FIELD_TYPE_NAME \
     "type-name", GST_TYPE_STRUCTURE, gst_structure_new ("value", \
         "type", G_TYPE_GTYPE, G_TYPE_STRING, \
-        "related-to", GST_TYPE_TRACER_VALUE_SCOPE, GST_TRACER_VALUE_SCOPE_PROCESS, \
         NULL)
 #define RECORD_FIELD_ADDRESS \
     "address", GST_TYPE_STRUCTURE, gst_structure_new ("value", \
         "type", G_TYPE_GTYPE, G_TYPE_POINTER, \
-        "related-to", GST_TYPE_TRACER_VALUE_SCOPE, \
-        GST_TRACER_VALUE_SCOPE_PROCESS, \
         NULL)
 #define RECORD_FIELD_DESC \
     "description", GST_TYPE_STRUCTURE, gst_structure_new ("value", \
         "type", G_TYPE_GTYPE, G_TYPE_STRING, \
-        "related-to", GST_TYPE_TRACER_VALUE_SCOPE, GST_TRACER_VALUE_SCOPE_PROCESS, \
         NULL)
 #define RECORD_FIELD_REF_COUNT \
     "ref-count", GST_TYPE_STRUCTURE, gst_structure_new ("value", \
         "type", G_TYPE_GTYPE, G_TYPE_UINT, \
-        "related-to", GST_TYPE_TRACER_VALUE_SCOPE, GST_TRACER_VALUE_SCOPE_PROCESS, \
         NULL)
 #define RECORD_FIELD_TRACE \
     "trace", GST_TYPE_STRUCTURE, gst_structure_new ("value", \
         "type", G_TYPE_GTYPE, G_TYPE_STRING, \
-        "related-to", GST_TYPE_TRACER_VALUE_SCOPE, GST_TRACER_VALUE_SCOPE_PROCESS, \
         NULL)
 
 #ifdef G_OS_UNIX