Valadoc | Vala | Tutorial | API-References | Markup

Trace


Object Hierarchy:

Object hierarchy for Trace

Description:

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)


Namespace: Gst
Package: gstreamer-0.10

Content:

Static methods:

Creation methods:

Methods:

Fields: