gst: add some performance logging

Add some performance logging for caps copy and the slow default acceptcaps
implementation
This commit is contained in:
Wim Taymans 2012-02-10 11:09:01 +01:00
parent 3d4a1a98b5
commit 34f770a900
2 changed files with 6 additions and 0 deletions

View file

@ -150,6 +150,9 @@ _gst_caps_copy (const GstCaps * caps)
GST_CAPS_FLAGS (newcaps) = GST_CAPS_FLAGS (caps);
n = GST_CAPS_LEN (caps);
GST_CAT_DEBUG_OBJECT (GST_CAT_PERFORMANCE, caps, "doing copy %p -> %p",
caps, newcaps);
for (i = 0; i < n; i++) {
structure = gst_caps_get_structure_unchecked (caps, i);
gst_caps_append_structure (newcaps, gst_structure_copy (structure));

View file

@ -2658,6 +2658,9 @@ gst_pad_query_accept_caps_default (GstPad * pad, GstQuery * query)
}
}
GST_CAT_DEBUG_OBJECT (GST_CAT_PERFORMANCE, pad,
"fallback ACCEPT_CAPS query, consider implementing a specialized version");
allowed = gst_pad_query_caps (pad, NULL);
gst_query_parse_accept_caps (query, &caps);