[anjuta/newproject] Remove some debug messages
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/newproject] Remove some debug messages
- Date: Sat, 23 Oct 2010 20:43:57 +0000 (UTC)
commit ba757365d5356c1c14d6a9ce61340aa799ee089e
Author: Sébastien Granjoux <seb sfo free fr>
Date: Wed Oct 20 22:49:13 2010 +0200
Remove some debug messages
plugins/am-project/am-node.c | 2 --
plugins/am-project/am-project.c | 19 +++++++++++++++----
plugins/am-project/am-scanner.l | 2 +-
3 files changed, 16 insertions(+), 7 deletions(-)
---
diff --git a/plugins/am-project/am-node.c b/plugins/am-project/am-node.c
index 3ddd845..3582b3c 100644
--- a/plugins/am-project/am-node.c
+++ b/plugins/am-project/am-node.c
@@ -523,7 +523,6 @@ amp_group_set_makefile (AnjutaAmGroupNode *group, GFile *makefile, GObject* proj
scanner = amp_am_scanner_new (AMP_PROJECT (project), group);
group->make_token = amp_am_scanner_parse_token (scanner, anjuta_token_new_static (ANJUTA_TOKEN_FILE, NULL), token, makefile, NULL);
amp_am_scanner_free (scanner);
- fprintf (stderr, "group->make_token %p\n", group->make_token);
group->monitor = g_file_monitor_file (makefile,
G_FILE_MONITOR_NONE,
@@ -531,7 +530,6 @@ amp_group_set_makefile (AnjutaAmGroupNode *group, GFile *makefile, GObject* proj
NULL);
if (group->monitor != NULL)
{
- g_message ("add monitor %s node %p data %p project %p monitor %p", g_file_get_path (makefile), group, group, project, group->monitor);
group->project = project;
g_signal_connect (G_OBJECT (group->monitor),
"changed",
diff --git a/plugins/am-project/am-project.c b/plugins/am-project/am-project.c
index 20b6c30..17780b7 100644
--- a/plugins/am-project/am-project.c
+++ b/plugins/am-project/am-project.c
@@ -1654,17 +1654,28 @@ amp_project_load_group (AmpProject *project, AnjutaProjectNode *node, GError **e
AnjutaProjectNode *
amp_project_load_node (AmpProject *project, AnjutaProjectNode *node, GError **error)
{
+ AnjutaProjectNode *loaded = NULL;
+ GTimer *timer;
+
+ timer = g_timer_new ();
switch (anjuta_project_node_get_node_type (node))
{
case ANJUTA_PROJECT_ROOT:
- return amp_project_load_root (project, error);
+ loaded = amp_project_load_root (project, error);
+ break;
case ANJUTA_PROJECT_PACKAGE:
- return amp_project_load_package (project, node, error);
+ loaded = amp_project_load_package (project, node, error);
+ break;
case ANJUTA_PROJECT_GROUP:
- return amp_project_load_group (project, node, error);
+ loaded = amp_project_load_group (project, node, error);
+ break;
default:
- return NULL;
+ break;
}
+ g_message ("Node %x loaded in %g", anjuta_project_node_get_node_type (node), g_timer_elapsed (timer, NULL));
+ g_timer_destroy (timer);
+
+ return loaded;
}
void
diff --git a/plugins/am-project/am-scanner.l b/plugins/am-project/am-scanner.l
index 88c767b..382feeb 100644
--- a/plugins/am-project/am-scanner.l
+++ b/plugins/am-project/am-scanner.l
@@ -278,7 +278,7 @@ amp_am_scanner_include (AmpAmScanner *scanner, AnjutaToken *list)
name = anjuta_token_first_item (list);
name = anjuta_token_next_item (name);
filename = g_strstrip (anjuta_token_evaluate (name));
- g_message ("read include =%s=", filename);
+ //g_message ("read include =%s=", filename);
file = g_file_resolve_relative_path (anjuta_token_stream_get_current_directory (scanner->stream), filename);
g_free (filename);
include = anjuta_token_file_new (file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]