Trace
Object Hierarchy:
Description:
[ Compact ]
public class Trace
Traces allows to track object allocation.
They provide a instance counter per Type. The counter is incremented for each object
allocated and decremented it when it's freed.
Tracing object instances:
// trace un-freed object instances
gst_alloc_trace_set_flags_all (GST_ALLOC_TRACE_LIVE);
if (!gst_alloc_trace_available ()) {
g_warning ("Trace not available (recompile with trace enabled).");
}
gst_alloc_trace_print_live ();
// do something here
gst_alloc_trace_print_live ();
Last reviewed on 2005-11-21 (0.9.5)
Content:
Static methods:
Creation methods:
Methods:
- public void flush ()
Flush any pending trace entries in trace to the trace file.
- public void set_default ()
Set the default Trace to trace.
- public void text_flush ()
Flush any pending trace entries in trace to the trace file,
formatted as a text line with timestamp and sequence numbers.
Fields: