From 1aec992f242611c430998c8a6c0a8782bccbbc2f Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 3 Jul 2004 11:39:07 +0000 Subject: Add profiler calls. 2004-07-03 Christian Persch * lib/widgets/ephy-spinner.c: (ephy_spinner_load_images): Add profiler calls. --- ChangeLog | 6 ++++++ lib/widgets/ephy-spinner.c | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index c2f8a4d57..8d5e31b70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-07-03 Christian Persch + + * lib/widgets/ephy-spinner.c: (ephy_spinner_load_images): + + Add profiler calls. + 2004-07-03 Christian Persch * embed/mozilla/mozilla-embed-single.cpp: 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 #include @@ -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") } /* -- cgit v1.2.3