diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-01-27 17:50:42 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-01-27 17:54:43 +0100 |
commit | 321ee10bd6a3fec0951e93e3e112603693d86c33 (patch) | |
tree | b58fe791a12432dc8a6fa59ddf4a2292a5925248 /tools/gst-launch.c | |
parent | 27ac781ba6ba4a9acec4dcb57751a4243a7da2ef (diff) |
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 'tools/gst-launch.c')
-rw-r--r-- | tools/gst-launch.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tools/gst-launch.c b/tools/gst-launch.c index 3ea4fff49..b3b8c97e0 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -822,7 +822,6 @@ main (int argc, char *argv[]) /* options */ gboolean verbose = FALSE; gboolean no_fault = FALSE; - gboolean trace = FALSE; gboolean eos_on_shutdown = FALSE; #if 0 gboolean check_index = FALSE; @@ -843,8 +842,6 @@ main (int argc, char *argv[]) N_("Do not output status information of TYPE"), N_("TYPE1,TYPE2,...")}, {"no-fault", 'f', 0, G_OPTION_ARG_NONE, &no_fault, N_("Do not install a fault handler"), NULL}, - {"trace", 'T', 0, G_OPTION_ARG_NONE, &trace, - N_("Print alloc trace (if enabled at compile time)"), NULL}, {"eos-on-shutdown", 'e', 0, G_OPTION_ARG_NONE, &eos_on_shutdown, N_("Force EOS on sources before shutting the pipeline down"), NULL}, #if 0 @@ -900,15 +897,6 @@ main (int argc, char *argv[]) sigint_setup (); #endif - if (trace) { - if (!gst_alloc_trace_available ()) { - g_warning ("Trace not available (recompile with trace enabled)."); - } - gst_alloc_trace_set_flags_all (GST_ALLOC_TRACE_LIVE | - GST_ALLOC_TRACE_MEM_LIVE); - gst_alloc_trace_print_live (); - } - /* make a null-terminated version of argv */ argvn = g_new0 (char *, argc); memcpy (argvn, argv + 1, sizeof (char *) * (argc - 1)); @@ -1083,8 +1071,6 @@ main (int argc, char *argv[]) gst_object_unref (pipeline); gst_deinit (); - if (trace) - gst_alloc_trace_print_live (); return res; } |