changeset 762:e6927cef8541

measure time of filelist update
author nadvornik
date Tue, 27 May 2008 18:46:34 +0000
parents a2dda8e61e0f
children 81f9e8dbb4bf
files src/view_file_list.c
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/view_file_list.c	Tue May 27 18:37:15 2008 +0000
+++ b/src/view_file_list.c	Tue May 27 18:46:34 2008 +0000
@@ -1578,15 +1578,21 @@
 	old_list = vf->list;
 	vf->list = NULL;
 
+	DEBUG_1("%s vflist_refresh: read dir", get_exec_time());
 	if (vf->path)
 		{
 		ret = filelist_read(vf->path, &vf->list, NULL);
 		}
+	DEBUG_1("%s vflist_refresh: sort", get_exec_time());
 
 	vf->list = filelist_sort(vf->list, vf->sort_method, vf->sort_ascend);
+
+	DEBUG_1("%s vflist_refresh: populate view", get_exec_time());
+
 	vflist_populate_view(vf);
 
 	filelist_free(old_list);
+	DEBUG_1("%s vflist_refresh: done", get_exec_time());
 
 	return ret;
 }
@@ -1911,6 +1917,8 @@
 	gchar *source_base;
 	gchar *dest_base;
 
+	DEBUG_1("%s vflist_maint_renamed: start", get_exec_time());
+
 	if (g_list_index(vf->list, fd) < 0) return FALSE;
 
 	source_base = remove_level_from_path(fd->change->source);
@@ -1957,6 +1965,8 @@
 	g_free(source_base);
 	g_free(dest_base);
 
+	DEBUG_1("%s vflist_maint_renamed: done", get_exec_time());
+
 	return ret;
 }
 
@@ -1967,6 +1977,8 @@
 	gint row;
 	gint new_row = -1;
 
+	DEBUG_1("%s vflist_maint_removed: start", get_exec_time());
+
 	row = g_list_index(vf->list, fd);
 	if (row < 0) return FALSE;
 
@@ -2026,6 +2038,8 @@
 
 	vf_send_update(vf);
 
+	DEBUG_1("%s vflist_maint_removed: done", get_exec_time());
+
 	return TRUE;
 }