add gst_alloc_trace_live_all(), used by the test suites

Original commit message from CVS:
add gst_alloc_trace_live_all(), used by the test suites
This commit is contained in:
David Schleef 2003-10-15 21:31:23 +00:00
parent 9c87c528e7
commit f8e5104302
2 changed files with 23 additions and 0 deletions

View file

@ -218,6 +218,28 @@ gst_alloc_trace_list (void)
return _gst_alloc_tracers;
}
/**
* gst_alloc_trace_live_all:
*
* Returns the total number of live registered alloc trace objects.
*/
int
gst_alloc_trace_live_all (void)
{
GList *walk = _gst_alloc_tracers;
int num = 0;
while (walk) {
GstAllocTrace *trace = (GstAllocTrace *) walk->data;
num += trace->live;
walk = g_list_next (walk);
}
return num;
}
/**
* gst_alloc_trace_print_all:
*

View file

@ -89,6 +89,7 @@ gboolean gst_alloc_trace_available (void);
const GList* gst_alloc_trace_list (void);
GstAllocTrace* _gst_alloc_trace_register (const gchar *name);
int gst_alloc_trace_live_all (void);
void gst_alloc_trace_print_all (void);
void gst_alloc_trace_set_flags_all (GstAllocTraceFlags flags);