mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
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:
parent
9c87c528e7
commit
f8e5104302
2 changed files with 23 additions and 0 deletions
|
@ -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:
|
||||
*
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue