|
Packit Service |
963350 |
/* GStreamer
|
|
Packit Service |
963350 |
* Copyright (C) 2013 Stefan Sauer <ensonic@users.sf.net>
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* gsttracers.c: tracing modules
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
963350 |
* modify it under the terms of the GNU Library General Public
|
|
Packit Service |
963350 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
963350 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
963350 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
963350 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
963350 |
* Library General Public License for more details.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* You should have received a copy of the GNU Library General Public
|
|
Packit Service |
963350 |
* License along with this library; if not, write to the
|
|
Packit Service |
963350 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit Service |
963350 |
* Boston, MA 02110-1301, USA.
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#ifdef HAVE_CONFIG_H
|
|
Packit Service |
963350 |
# include "config.h"
|
|
Packit Service |
963350 |
#endif
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#include <gst/gst.h>
|
|
Packit Service |
963350 |
#include "gstlatency.h"
|
|
Packit Service |
963350 |
#include "gstlog.h"
|
|
Packit Service |
963350 |
#include "gstrusage.h"
|
|
Packit Service |
963350 |
#include "gststats.h"
|
|
Packit Service |
963350 |
#include "gstleaks.h"
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
static gboolean
|
|
Packit Service |
963350 |
plugin_init (GstPlugin * plugin)
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
if (!gst_tracer_register (plugin, "latency", gst_latency_tracer_get_type ()))
|
|
Packit Service |
963350 |
return FALSE;
|
|
Packit Service |
963350 |
#ifndef GST_DISABLE_GST_DEBUG
|
|
Packit Service |
963350 |
if (!gst_tracer_register (plugin, "log", gst_log_tracer_get_type ()))
|
|
Packit Service |
963350 |
return FALSE;
|
|
Packit Service |
963350 |
#endif
|
|
Packit Service |
963350 |
#ifdef HAVE_GETRUSAGE
|
|
Packit Service |
963350 |
if (!gst_tracer_register (plugin, "rusage", gst_rusage_tracer_get_type ()))
|
|
Packit Service |
963350 |
return FALSE;
|
|
Packit Service |
963350 |
#endif
|
|
Packit Service |
963350 |
if (!gst_tracer_register (plugin, "stats", gst_stats_tracer_get_type ()))
|
|
Packit Service |
963350 |
return FALSE;
|
|
Packit Service |
963350 |
if (!gst_tracer_register (plugin, "leaks", gst_leaks_tracer_get_type ()))
|
|
Packit Service |
963350 |
return FALSE;
|
|
Packit Service |
963350 |
return TRUE;
|
|
Packit Service |
963350 |
}
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, coretracers,
|
|
Packit Service |
963350 |
"GStreamer core tracers", plugin_init, VERSION, GST_LICENSE,
|
|
Packit Service |
963350 |
GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);
|