[evolution/webkit] Remove the profiler plugin.



commit d007248979cfa7530f1e6060741d02690a6ef754
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Mar 28 15:53:39 2011 -0400

    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.).

 configure.ac                                       |   18 +--
 e-util/Makefile.am                                 |    2 -
 e-util/e-profile-event.c                           |  156 --------------------
 e-util/e-profile-event.h                           |  106 -------------
 mail/message-list.c                                |   11 --
 plugins/profiler/Makefile.am                       |   23 ---
 .../org-gnome-evolution-profiler.eplug.xml         |   15 --
 plugins/profiler/profiler.c                        |   62 --------
 shell/main.c                                       |    4 -
 9 files changed, 1 insertions(+), 396 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 39d2b29..d798960 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1418,22 +1418,7 @@ dist_plugins_standard="$plugins_standard audio-inline image-inline pst-import"
 plugins_experimental_always="external-editor"
 
 plugins_experimental="$plugins_experimental_always $TNEF_ATTACHMENTS"
-dist_plugins_experimental="$plugins_experimental_always profiler tnef-attachments contacts-map"
-
-dnl ******************************
-dnl Profiling support
-dnl ******************************
-AC_ARG_ENABLE([profiling],
-	AS_HELP_STRING([--enable-profiling],
-	[Enable profiling plugin.]),
-	[enable_profiling=$enableval],[enable_profiling=no])
-
-case x"$enable_profiling" in
-x | xyes)
-	plugins_experimental="$plugins_experimental profiler"
-	AC_DEFINE(ENABLE_PROFILING,1,[Profiling Hooks Enabled])
-	;;
-esac
+dist_plugins_experimental="$plugins_experimental_always tnef-attachments contacts-map"
 
 dnl ******************************************************************
 dnl The following plugins have additional library dependencies.
@@ -1780,7 +1765,6 @@ plugins/mail-to-task/Makefile
 plugins/mailing-list-actions/Makefile
 plugins/mark-all-read/Makefile
 plugins/prefer-plain/Makefile
-plugins/profiler/Makefile
 plugins/pst-import/Makefile
 plugins/publish-calendar/Makefile
 plugins/sa-junk-plugin/Makefile
diff --git a/e-util/Makefile.am b/e-util/Makefile.am
index a92f615..8345201 100644
--- a/e-util/Makefile.am
+++ b/e-util/Makefile.am
@@ -44,7 +44,6 @@ eutilinclude_HEADERS = 				\
 	e-plugin.h				\
 	e-plugin-ui.h				\
 	e-plugin-util.h				\
-	e-profile-event.h			\
 	e-selection.h				\
 	e-signature.h				\
 	e-signature-list.h			\
@@ -120,7 +119,6 @@ libeutil_la_SOURCES =				\
 	e-plugin-ui.c				\
 	e-plugin-util.c				\
 	e-print.c				\
-	e-profile-event.c			\
 	e-selection.c				\
 	e-signature.c				\
 	e-signature-list.c			\
diff --git a/mail/message-list.c b/mail/message-list.c
index 6306b72..72c962e 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -39,7 +39,6 @@
 #include "e-util/e-account-utils.h"
 #include "e-util/e-icon-factory.h"
 #include "e-util/e-poolv.h"
-#include "e-util/e-profile-event.h"
 #include "e-util/e-util-private.h"
 #include "e-util/e-util.h"
 
@@ -4527,8 +4526,6 @@ regen_list_exec (struct _regen_list_msg *m,
 	if (cursor)
 		m->last_row = e_tree_table_adapter_row_of_node (e_tree_get_table_adapter (tree), cursor);
 
-	e_profile_event_emit("list.getuids", camel_folder_get_full_name (m->folder), 0);
-
 	/* if we have hidedeleted on, use a search to find it out, merge with existing search if set */
 	if (!camel_folder_has_search_capability (m->folder)) {
 		/* if we have no search capability, dont let search or hide deleted work */
@@ -4608,8 +4605,6 @@ regen_list_exec (struct _regen_list_msg *m,
 		return;
 	}
 
-	e_profile_event_emit("list.threaduids", camel_folder_get_full_name (m->folder), 0);
-
 	/* camel_folder_summary_prepare_fetch_all (m->folder->summary, NULL); */
 	if (!g_cancellable_is_cancelled (cancellable)) {
 		/* update/build a new tree */
@@ -4669,8 +4664,6 @@ regen_list_done (struct _regen_list_msg *m)
 
 	g_signal_handlers_block_by_func (e_tree_get_table_adapter (tree), ml_tree_sorting_changed, m->ml);
 
-	e_profile_event_emit("list.buildtree", camel_folder_get_full_name (m->folder), 0);
-
 	if (m->dotree) {
 		gboolean forcing_expand_state = m->ml->expand_all || m->ml->collapse_all;
 
@@ -4776,8 +4769,6 @@ regen_list_free (struct _regen_list_msg *m)
 {
 	gint i;
 
-	e_profile_event_emit("list.regenerated", camel_folder_get_full_name (m->folder), 0);
-
 	if (m->summary) {
 		for (i = 0; i < m->summary->len; i++)
 			camel_folder_free_message_info (m->folder, m->summary->pdata[i]);
@@ -4817,8 +4808,6 @@ static MailMsgInfo regen_list_info = {
 static gboolean
 ml_regen_timeout (struct _regen_list_msg *m)
 {
-	e_profile_event_emit("list.regenerate", camel_folder_get_full_name (m->folder), 0);
-
 	g_mutex_lock (m->ml->regen_lock);
 	m->ml->regen = g_list_prepend (m->ml->regen, m);
 	g_mutex_unlock (m->ml->regen_lock);
diff --git a/shell/main.c b/shell/main.c
index a27b6b9..001d6bd 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -66,7 +66,6 @@
 #include "e-util/e-import.h"
 #include "e-util/e-plugin.h"
 #include "e-util/e-plugin-ui.h"
-#include "e-util/e-profile-event.h"
 #include "e-util/e-util-private.h"
 #include "e-util/e-util.h"
 #ifdef G_OS_WIN32
@@ -721,9 +720,6 @@ main (gint argc, gchar **argv)
 		/* Register built-in plugin hook types. */
 		es_event_hook_get_type ();
 		e_import_hook_get_type ();
-#ifdef ENABLE_PROFILING
-		e_profile_event_hook_get_type ();
-#endif
 		e_plugin_ui_hook_get_type ();
 
 		/* All EPlugin and EPluginHook subclasses should be



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]