diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-07-03 19:39:07 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-07-03 19:39:07 +0800 |
commit | 1aec992f242611c430998c8a6c0a8782bccbbc2f (patch) | |
tree | f41283967c64a57d497dd40af06bf7d40c26d73c /lib | |
parent | 4f05ea67e32470322a557738b548f31e1f15c4f3 (diff) | |
download | gsoc2013-epiphany-1aec992f242611c430998c8a6c0a8782bccbbc2f.tar gsoc2013-epiphany-1aec992f242611c430998c8a6c0a8782bccbbc2f.tar.gz gsoc2013-epiphany-1aec992f242611c430998c8a6c0a8782bccbbc2f.tar.bz2 gsoc2013-epiphany-1aec992f242611c430998c8a6c0a8782bccbbc2f.tar.lz gsoc2013-epiphany-1aec992f242611c430998c8a6c0a8782bccbbc2f.tar.xz gsoc2013-epiphany-1aec992f242611c430998c8a6c0a8782bccbbc2f.tar.zst gsoc2013-epiphany-1aec992f242611c430998c8a6c0a8782bccbbc2f.zip |
Add profiler calls.
2004-07-03 Christian Persch <chpe@cvs.gnome.org>
* lib/widgets/ephy-spinner.c: (ephy_spinner_load_images):
Add profiler calls.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/widgets/ephy-spinner.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/widgets/ephy-spinner.c b/lib/widgets/ephy-spinner.c index 8145e17ae..e84afa68a 100644 --- a/lib/widgets/ephy-spinner.c +++ b/lib/widgets/ephy-spinner.c @@ -33,6 +33,7 @@ #endif #include "ephy-spinner.h" +#include "ephy-debug.h" #include <gdk-pixbuf/gdk-pixbuf.h> #include <gtk/gtkicontheme.h> @@ -440,11 +441,15 @@ ephy_spinner_load_images (EphySpinner *spinner) ephy_spinner_unload_images (spinner); + START_PROFILER ("loading spinner animation") + /* Load the animation */ icon_info = gtk_icon_theme_lookup_icon (spinner->details->icon_theme, "gnome-spinner", -1, 0); if (icon_info == NULL) { + STOP_PROFILER ("loading spinner animation") + g_warning ("Throbber animation not found"); return; } @@ -485,6 +490,8 @@ ephy_spinner_load_images (EphySpinner *spinner) "gnome-spinner-rest", -1, 0); if (icon_info == NULL) { + STOP_PROFILER ("loading spinner animation") + g_warning ("Throbber rest icon not found"); return; } @@ -498,6 +505,8 @@ ephy_spinner_load_images (EphySpinner *spinner) g_object_unref (icon_pixbuf); gtk_icon_info_free (icon_info); + + STOP_PROFILER ("loading spinner animation") } /* |