diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-03-29 03:53:39 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-03-29 04:12:42 +0800 |
commit | ea8326df3a64c21ddbcacad5941648b1a86bc7e2 (patch) | |
tree | d149c78ebf615f743c16b043dc95ef09c2e95eb0 /plugins/profiler/profiler.c | |
parent | e2f889a00543b42694095daf71ebe78d3ff230b5 (diff) | |
download | gsoc2013-evolution-ea8326df3a64c21ddbcacad5941648b1a86bc7e2.tar gsoc2013-evolution-ea8326df3a64c21ddbcacad5941648b1a86bc7e2.tar.gz gsoc2013-evolution-ea8326df3a64c21ddbcacad5941648b1a86bc7e2.tar.bz2 gsoc2013-evolution-ea8326df3a64c21ddbcacad5941648b1a86bc7e2.tar.lz gsoc2013-evolution-ea8326df3a64c21ddbcacad5941648b1a86bc7e2.tar.xz gsoc2013-evolution-ea8326df3a64c21ddbcacad5941648b1a86bc7e2.tar.zst gsoc2013-evolution-ea8326df3a64c21ddbcacad5941648b1a86bc7e2.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/profiler/profiler.c')
-rw-r--r-- | plugins/profiler/profiler.c | 62 |
1 files changed, 0 insertions, 62 deletions
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); -} |