Functions
gst_tracing_get_active_tracers
GList * gst_tracing_get_active_tracers ()
Get a list of all active tracer objects owned by the tracing framework for the entirety of the run-time of the process or till gst_deinit is called.
Since : 1.18
Gst.prototype.tracing_get_active_tracers
function Gst.prototype.tracing_get_active_tracers(): {
// javascript wrapper for 'gst_tracing_get_active_tracers'
}
Get a list of all active tracer objects owned by the tracing framework for the entirety of the run-time of the process or till Gst.prototype.deinit is called.
A GLib.List of Gst.Tracer objects
Since : 1.18
Gst.tracing_get_active_tracers
def Gst.tracing_get_active_tracers ():
#python wrapper for 'gst_tracing_get_active_tracers'
Get a list of all active tracer objects owned by the tracing framework for the entirety of the run-time of the process or till Gst.deinit is called.
A GLib.List of Gst.Tracer objects
Since : 1.18
gst_tracing_register_hook
gst_tracing_register_hook (GstTracer * tracer, const gchar * detail, GCallback func)
Register func to be called when the trace hook detail is getting invoked. Use NULL for detail to register to all hooks.
Parameters:
tracer
–
the tracer
detail
–
the detailed hook
func
(
[scope async])
–
the callback
Since : 1.8
Gst.prototype.tracing_register_hook
function Gst.prototype.tracing_register_hook(tracer: Gst.Tracer, detail: String, func: GObject.Callback): {
// javascript wrapper for 'gst_tracing_register_hook'
}
Register func to be called when the trace hook detail is getting invoked. Use null for detail to register to all hooks.
Parameters:
the tracer
the detailed hook
func
(GObject.Callback)
–
the callback
Since : 1.8
Gst.tracing_register_hook
def Gst.tracing_register_hook (tracer, detail, func):
#python wrapper for 'gst_tracing_register_hook'
Register func to be called when the trace hook detail is getting invoked. Use None for detail to register to all hooks.
Parameters:
the tracer
the detailed hook
func
(GObject.Callback)
–
the callback
Since : 1.8
Function Macros
GST_TRACER_BIN_ADD_POST
#define GST_TRACER_BIN_ADD_POST(bin, element, result) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_BIN_ADD_POST), \ GstTracerHookBinAddPost, (GST_TRACER_ARGS, bin, element, result)); \ }G_STMT_END
GST_TRACER_BIN_ADD_PRE
#define GST_TRACER_BIN_ADD_PRE(bin, element) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_BIN_ADD_PRE), \ GstTracerHookBinAddPre, (GST_TRACER_ARGS, bin, element)); \ }G_STMT_END
GST_TRACER_BIN_REMOVE_POST
#define GST_TRACER_BIN_REMOVE_POST(bin, result) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_BIN_REMOVE_POST), \ GstTracerHookBinRemovePost, (GST_TRACER_ARGS, bin, result)); \ }G_STMT_END
GST_TRACER_BIN_REMOVE_PRE
#define GST_TRACER_BIN_REMOVE_PRE(bin, element) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_BIN_REMOVE_PRE), \ GstTracerHookBinRemovePre, (GST_TRACER_ARGS, bin, element)); \ }G_STMT_END
GST_TRACER_DISPATCH
#define GST_TRACER_DISPATCH(key,type,args) G_STMT_START{ \ if (GST_TRACER_IS_ENABLED) { \ GstClockTime ts = GST_TRACER_TS; \ GList *__l, *__n; \ GstTracerHook *h; \ __l = g_hash_table_lookup (_priv_tracers, GINT_TO_POINTER (key)); \ for (__n = __l; __n; __n = g_list_next (__n)) { \ h = (GstTracerHook *) __n->data; \ ((type)(h->func)) args; \ } \ __l = g_hash_table_lookup (_priv_tracers, NULL); \ for (__n = __l; __n; __n = g_list_next (__n)) { \ h = (GstTracerHook *) __n->data; \ ((type)(h->func)) args; \ } \ } \ }G_STMT_END
GST_TRACER_ELEMENT_ADD_PAD
#define GST_TRACER_ELEMENT_ADD_PAD(element, pad) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_ELEMENT_ADD_PAD), \ GstTracerHookElementAddPad, (GST_TRACER_ARGS, element, pad)); \ }G_STMT_END
GST_TRACER_ELEMENT_CHANGE_STATE_POST
#define GST_TRACER_ELEMENT_CHANGE_STATE_POST(element, transition, result) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_ELEMENT_CHANGE_STATE_POST), \ GstTracerHookElementChangeStatePost, (GST_TRACER_ARGS, element, transition, result)); \ }G_STMT_END
GST_TRACER_ELEMENT_CHANGE_STATE_PRE
#define GST_TRACER_ELEMENT_CHANGE_STATE_PRE(element, transition) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_ELEMENT_CHANGE_STATE_PRE), \ GstTracerHookElementChangeStatePre, (GST_TRACER_ARGS, element, transition)); \ }G_STMT_END
GST_TRACER_ELEMENT_NEW
#define GST_TRACER_ELEMENT_NEW(element) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_ELEMENT_NEW), \ GstTracerHookElementNew, (GST_TRACER_ARGS, element)); \ }G_STMT_END
GST_TRACER_ELEMENT_POST_MESSAGE_POST
#define GST_TRACER_ELEMENT_POST_MESSAGE_POST(element, res) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_ELEMENT_POST_MESSAGE_POST), \ GstTracerHookElementPostMessagePost, (GST_TRACER_ARGS, element, res)); \ }G_STMT_END
GST_TRACER_ELEMENT_POST_MESSAGE_PRE
#define GST_TRACER_ELEMENT_POST_MESSAGE_PRE(element, message) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_ELEMENT_POST_MESSAGE_PRE), \ GstTracerHookElementPostMessagePre, (GST_TRACER_ARGS, element, message)); \ }G_STMT_END
GST_TRACER_ELEMENT_QUERY_POST
#define GST_TRACER_ELEMENT_QUERY_POST(element, query, res) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_ELEMENT_QUERY_POST), \ GstTracerHookElementQueryPost, (GST_TRACER_ARGS, element, query, res)); \ }G_STMT_END
GST_TRACER_ELEMENT_QUERY_PRE
#define GST_TRACER_ELEMENT_QUERY_PRE(element, query) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_ELEMENT_QUERY_PRE), \ GstTracerHookElementQueryPre, (GST_TRACER_ARGS, element, query)); \ }G_STMT_END
GST_TRACER_ELEMENT_REMOVE_PAD
#define GST_TRACER_ELEMENT_REMOVE_PAD(element, pad) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_ELEMENT_REMOVE_PAD), \ GstTracerHookElementRemovePad, (GST_TRACER_ARGS, element, pad)); \ }G_STMT_END
GST_TRACER_MINI_OBJECT_CREATED
#define GST_TRACER_MINI_OBJECT_CREATED(object) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_MINI_OBJECT_CREATED), \ GstTracerHookMiniObjectCreated, (GST_TRACER_ARGS, object)); \ }G_STMT_END
GST_TRACER_MINI_OBJECT_DESTROYED
#define GST_TRACER_MINI_OBJECT_DESTROYED(object) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_MINI_OBJECT_DESTROYED), \ GstTracerHookMiniObjectDestroyed, (GST_TRACER_ARGS, object)); \ }G_STMT_END
GST_TRACER_MINI_OBJECT_REFFED
#define GST_TRACER_MINI_OBJECT_REFFED(object, new_refcount) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_MINI_OBJECT_REFFED), \ GstTracerHookMiniObjectReffed, (GST_TRACER_ARGS, object, new_refcount)); \ }G_STMT_END
GST_TRACER_MINI_OBJECT_UNREFFED
#define GST_TRACER_MINI_OBJECT_UNREFFED(object, new_refcount) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_MINI_OBJECT_UNREFFED), \ GstTracerHookMiniObjectUnreffed, (GST_TRACER_ARGS, object, new_refcount)); \ }G_STMT_END
GST_TRACER_OBJECT_CREATED
#define GST_TRACER_OBJECT_CREATED(object) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_OBJECT_CREATED), \ GstTracerHookObjectCreated, (GST_TRACER_ARGS, object)); \ }G_STMT_END
GST_TRACER_OBJECT_DESTROYED
#define GST_TRACER_OBJECT_DESTROYED(object) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_OBJECT_DESTROYED), \ GstTracerHookObjectDestroyed, (GST_TRACER_ARGS, object)); \ }G_STMT_END
GST_TRACER_OBJECT_REFFED
#define GST_TRACER_OBJECT_REFFED(object, new_refcount) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_OBJECT_REFFED), \ GstTracerHookObjectReffed, (GST_TRACER_ARGS, object, new_refcount)); \ }G_STMT_END
GST_TRACER_OBJECT_UNREFFED
#define GST_TRACER_OBJECT_UNREFFED(object, new_refcount) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_OBJECT_UNREFFED), \ GstTracerHookObjectUnreffed, (GST_TRACER_ARGS, object, new_refcount)); \ }G_STMT_END
GST_TRACER_PAD_CHAIN_LIST_POST
#define GST_TRACER_PAD_CHAIN_LIST_POST(pad, res) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_CHAIN_LIST_POST), \ GstTracerHookPadChainListPost, (GST_TRACER_ARGS, pad, res)); \ }G_STMT_END
Dispatches the "pad-chain-list-post" hook.
Since : 1.22
GST_TRACER_PAD_CHAIN_LIST_PRE
#define GST_TRACER_PAD_CHAIN_LIST_PRE(pad, list) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_CHAIN_LIST_PRE), \ GstTracerHookPadChainListPre, (GST_TRACER_ARGS, pad, list)); \ }G_STMT_END
Dispatches the "pad-chain-list-pre" hook.
Since : 1.22
GST_TRACER_PAD_CHAIN_POST
#define GST_TRACER_PAD_CHAIN_POST(pad, res) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_CHAIN_POST), \ GstTracerHookPadChainPost, (GST_TRACER_ARGS, pad, res)); \ }G_STMT_END
Dispatches the "pad-chain-post" hook.
Since : 1.22
GST_TRACER_PAD_CHAIN_PRE
#define GST_TRACER_PAD_CHAIN_PRE(pad, buffer) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_CHAIN_PRE), \ GstTracerHookPadChainPre, (GST_TRACER_ARGS, pad, buffer)); \ }G_STMT_END
Dispatches the "pad-chain-pre" hook.
Since : 1.22
GST_TRACER_PAD_LINK_POST
#define GST_TRACER_PAD_LINK_POST(srcpad, sinkpad, result) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_LINK_POST), \ GstTracerHookPadLinkPost, (GST_TRACER_ARGS, srcpad, sinkpad, result)); \ }G_STMT_END
GST_TRACER_PAD_LINK_PRE
#define GST_TRACER_PAD_LINK_PRE(srcpad, sinkpad) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_LINK_PRE), \ GstTracerHookPadLinkPre, (GST_TRACER_ARGS, srcpad, sinkpad)); \ }G_STMT_END
GST_TRACER_PAD_PULL_RANGE_POST
#define GST_TRACER_PAD_PULL_RANGE_POST(pad, buffer, res) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_PULL_RANGE_POST), \ GstTracerHookPadPullRangePost, (GST_TRACER_ARGS, pad, buffer, res)); \ }G_STMT_END
GST_TRACER_PAD_PULL_RANGE_PRE
#define GST_TRACER_PAD_PULL_RANGE_PRE(pad, offset, size) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_PULL_RANGE_PRE), \ GstTracerHookPadPullRangePre, (GST_TRACER_ARGS, pad, offset, size)); \ }G_STMT_END
GST_TRACER_PAD_PUSH_EVENT_POST
#define GST_TRACER_PAD_PUSH_EVENT_POST(pad, res) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_PUSH_EVENT_POST), \ GstTracerHookPadPushEventPost, (GST_TRACER_ARGS, pad, res)); \ }G_STMT_END
GST_TRACER_PAD_PUSH_EVENT_PRE
#define GST_TRACER_PAD_PUSH_EVENT_PRE(pad, event) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_PUSH_EVENT_PRE), \ GstTracerHookPadPushEventPre, (GST_TRACER_ARGS, pad, event)); \ }G_STMT_END
GST_TRACER_PAD_PUSH_LIST_POST
#define GST_TRACER_PAD_PUSH_LIST_POST(pad, res) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_PUSH_LIST_POST), \ GstTracerHookPadPushListPost, (GST_TRACER_ARGS, pad, res)); \ }G_STMT_END
GST_TRACER_PAD_PUSH_LIST_PRE
#define GST_TRACER_PAD_PUSH_LIST_PRE(pad, list) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_PUSH_LIST_PRE), \ GstTracerHookPadPushListPre, (GST_TRACER_ARGS, pad, list)); \ }G_STMT_END
GST_TRACER_PAD_PUSH_POST
#define GST_TRACER_PAD_PUSH_POST(pad, res) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_PUSH_POST), \ GstTracerHookPadPushPost, (GST_TRACER_ARGS, pad, res)); \ }G_STMT_END
GST_TRACER_PAD_PUSH_PRE
#define GST_TRACER_PAD_PUSH_PRE(pad, buffer) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_PUSH_PRE), \ GstTracerHookPadPushPre, (GST_TRACER_ARGS, pad, buffer)); \ }G_STMT_END
GST_TRACER_PAD_QUERY_POST
#define GST_TRACER_PAD_QUERY_POST(pad, query, res) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_QUERY_POST), \ GstTracerHookPadQueryPost, (GST_TRACER_ARGS, pad, query, res)); \ }G_STMT_END
GST_TRACER_PAD_QUERY_PRE
#define GST_TRACER_PAD_QUERY_PRE(pad, query) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_QUERY_PRE), \ GstTracerHookPadQueryPre, (GST_TRACER_ARGS, pad, query)); \ }G_STMT_END
GST_TRACER_PAD_UNLINK_POST
#define GST_TRACER_PAD_UNLINK_POST(srcpad, sinkpad, result) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_UNLINK_POST), \ GstTracerHookPadUnlinkPost, (GST_TRACER_ARGS, srcpad, sinkpad, result)); \ }G_STMT_END
GST_TRACER_PAD_UNLINK_PRE
#define GST_TRACER_PAD_UNLINK_PRE(srcpad, sinkpad) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PAD_UNLINK_PRE), \ GstTracerHookPadUnlinkPre, (GST_TRACER_ARGS, srcpad, sinkpad)); \ }G_STMT_END
GST_TRACER_PLUGIN_FEATURE_LOADED
#define GST_TRACER_PLUGIN_FEATURE_LOADED(feature) G_STMT_START{ \ GST_TRACER_DISPATCH(GST_TRACER_QUARK(HOOK_PLUGIN_FEATURE_LOADED), \ GstTracerHookPluginFeatureLoaded, (GST_TRACER_ARGS, feature)); \ }G_STMT_END
Add a tracepoint when a plugin feature is loaded.
Parameters:
feature
–
The feature that this tracer is called for
Since : 1.20
GST_TRACER_QUARK
#define GST_TRACER_QUARK(q) _priv_gst_tracer_quark_table[GST_TRACER_QUARK_##q]
Constants
GST_TRACER_ARGS
#define GST_TRACER_ARGS h->tracer, ts
GST_TRACER_IS_ENABLED
#define GST_TRACER_IS_ENABLED (_priv_tracer_enabled)
GST_TRACER_TS
#define GST_TRACER_TS \ GST_CLOCK_DIFF (_priv_gst_start_time, gst_util_get_timestamp ())
The results of the search are