diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-03-29 03:53:39 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:50 +0800 |
commit | 57ea14220ee233c2670743fd128835af2fc163c2 (patch) | |
tree | 94f63205ec999d764d4a1c6a7e4fb2d25d25ac63 /plugins | |
parent | 2199258d17d231ef5956ff4bb834699175d67324 (diff) | |
download | gsoc2013-evolution-57ea14220ee233c2670743fd128835af2fc163c2.tar gsoc2013-evolution-57ea14220ee233c2670743fd128835af2fc163c2.tar.gz gsoc2013-evolution-57ea14220ee233c2670743fd128835af2fc163c2.tar.bz2 gsoc2013-evolution-57ea14220ee233c2670743fd128835af2fc163c2.tar.lz gsoc2013-evolution-57ea14220ee233c2670743fd128835af2fc163c2.tar.xz gsoc2013-evolution-57ea14220ee233c2670743fd128835af2fc163c2.tar.zst gsoc2013-evolution-57ea14220ee233c2670743fd128835af2fc163c2.zip |
Remove the profiler plugin.
This plugin was for developers, but no one uses it anymore. Plus the
only profiling hooks left in Evolution were in the MessageList widget,
which performs fine. There's better ways to collect profiling data
these days anyway (sysprof, systemtap, etc.).
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/profiler/Makefile.am | 23 | ||||
-rw-r--r-- | plugins/profiler/org-gnome-evolution-profiler.eplug.xml | 15 | ||||
-rw-r--r-- | plugins/profiler/profiler.c | 62 |
3 files changed, 0 insertions, 100 deletions
diff --git a/plugins/profiler/Makefile.am b/plugins/profiler/Makefile.am deleted file mode 100644 index 2a61fbafbe..0000000000 --- a/plugins/profiler/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -LIBS = $(SHELL_LIBS) - -@EVO_PLUGIN_RULE@ - -plugin_DATA = org-gnome-evolution-profiler.eplug - -plugin_LTLIBRARIES = liborg-gnome-evolution-profiler.la - -liborg_gnome_evolution_profiler_la_CPPFLAGS = \ - $(AM_CPPFLAGS) \ - -I$(top_srcdir) \ - $(SHELL_CFLAGS) - -liborg_gnome_evolution_profiler_la_SOURCES = profiler.c - -liborg_gnome_evolution_profiler_la_LDFLAGS = -module -avoid-version $(NO_UNDEFINED) - -EXTRA_DIST = org-gnome-evolution-profiler.eplug.xml - -BUILT_SOURCES = $(plugin_DATA) -CLEANFILES = $(BUILT_SOURCES) - --include $(top_srcdir)/git.mk diff --git a/plugins/profiler/org-gnome-evolution-profiler.eplug.xml b/plugins/profiler/org-gnome-evolution-profiler.eplug.xml deleted file mode 100644 index 97720132be..0000000000 --- a/plugins/profiler/org-gnome-evolution-profiler.eplug.xml +++ /dev/null @@ -1,15 +0,0 @@ -<e-plugin-list> - <e-plugin - id="org.gnome.evolution.profiler" - type="shlib" - _name="Evolution Profiler" - location="@PLUGINDIR@/liborg-gnome-evolution-profiler@SOEXT@"> - - <_description>Profile data events in Evolution (for developers only).</_description> - <author name="Michael Zucchi" email="notzed@novell.com"/> - - <hook class="org.gnome.evolution.profile.events:1.0"> - <event id="event" handle="org_gnome_evolution_profiler_event" target="event"/> - </hook> - </e-plugin> -</e-plugin-list> diff --git a/plugins/profiler/profiler.c b/plugins/profiler/profiler.c deleted file mode 100644 index 9744a684de..0000000000 --- a/plugins/profiler/profiler.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with the program; if not, see <http://www.gnu.org/licenses/> - * - * - * Authors: - * Michael Zucchi <notzed@novell.com> - * - * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) - * - */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include <string.h> -#include <stdio.h> -#include <sys/types.h> -#include <unistd.h> - -#include <glib.h> -#include <e-util/e-profile-event.h> - -void org_gnome_evolution_profiler_event (EPlugin *ep, EProfileEventTarget *t); - -gint e_plugin_lib_enable (EPlugin *ep, gint enable); - -gint -e_plugin_lib_enable (EPlugin *ep, gint enable) -{ - return 0; -} - -void -org_gnome_evolution_profiler_event (EPlugin *ep, EProfileEventTarget *t) -{ - static FILE *fp; - - if (!fp) { - gchar *name; - - name = g_strdup_printf("eprofile.%ld", (glong) getpid()); - fp = fopen(name, "w"); - if (fp) - fprintf(stderr, "Generating profiling data in '%s'\n", name); - g_free (name); - } - - if (fp) - fprintf(fp, "%d.%d: %s,%s\n", (gint) t->tv.tv_sec, (gint) t->tv.tv_usec, t->id, t->uid); -} |