diff options
author | William Jon McCann <jmccann@redhat.com> | 2012-08-07 18:13:07 -0400 |
---|---|---|
committer | William Jon McCann <jmccann@redhat.com> | 2012-08-08 15:55:29 -0400 |
commit | 3516a3ac56ef222f3995a49ee429eebb48526408 (patch) | |
tree | b9444496264a877119b4f3c9ccb8128f8ac84205 /libnautilus-private/nautilus-directory.c | |
parent | d1a5b063f58b93f01a1415ee3b547256ba7d61b7 (diff) | |
download | nautilus-3516a3ac56ef222f3995a49ee429eebb48526408.tar.gz |
Add a bunch of profiling points
Diffstat (limited to 'libnautilus-private/nautilus-directory.c')
-rw-r--r-- | libnautilus-private/nautilus-directory.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-directory.c b/libnautilus-private/nautilus-directory.c index 6dcb8e0bd..801ce4738 100644 --- a/libnautilus-private/nautilus-directory.c +++ b/libnautilus-private/nautilus-directory.c @@ -33,6 +33,7 @@ #include "nautilus-global-preferences.h" #include "nautilus-lib-self-check-functions.h" #include "nautilus-metadata.h" +#include "nautilus-profile.h" #include "nautilus-desktop-directory.h" #include "nautilus-vfs-directory.h" #include <eel/eel-glib-extensions.h> @@ -712,22 +713,26 @@ void nautilus_directory_emit_files_added (NautilusDirectory *directory, GList *added_files) { + nautilus_profile_start (NULL); if (added_files != NULL) { g_signal_emit (directory, signals[FILES_ADDED], 0, added_files); } + nautilus_profile_end (NULL); } void nautilus_directory_emit_files_changed (NautilusDirectory *directory, GList *changed_files) { + nautilus_profile_start (NULL); if (changed_files != NULL) { g_signal_emit (directory, signals[FILES_CHANGED], 0, changed_files); } + nautilus_profile_end (NULL); } void @@ -736,10 +741,12 @@ nautilus_directory_emit_change_signals (NautilusDirectory *directory, { GList *p; + nautilus_profile_start (NULL); for (p = changed_files; p != NULL; p = p->next) { nautilus_file_emit_changed (p->data); } nautilus_directory_emit_files_changed (directory, changed_files); + nautilus_profile_end (NULL); } void @@ -903,6 +910,8 @@ nautilus_directory_notify_files_added (GList *files) NautilusFile *file; GFile *location, *parent; + nautilus_profile_start (NULL); + /* Make a list of added files in each directory. */ added_lists = g_hash_table_new (NULL, NULL); @@ -972,6 +981,8 @@ nautilus_directory_notify_files_added (GList *files) /* Invalidate count for each parent directory. */ g_hash_table_foreach (parent_directories, invalidate_count_and_unref, NULL); g_hash_table_destroy (parent_directories); + + nautilus_profile_end (NULL); } static void |