summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2008-03-24 01:52:43 +0000
committerWilliam Jon McCann <mccann@src.gnome.org>2008-03-24 01:52:43 +0000
commitd3601da43abb94870aae346857809b2ef172107b (patch)
treeddf8597fdc520075bfe16cd4405864d538b1567f /common
parent896b850edc9d8aa3e5257c3cdb262a3a5ffb5f33 (diff)
downloadgdm-d3601da43abb94870aae346857809b2ef172107b.tar.gz
Add some more profiling stuff.
2008-03-23 William Jon McCann <jmccann@redhat.com> * common/gdm-profile.h: * configure.ac: * gui/simple-greeter/gdm-greeter-client.c: (gdm_greeter_client_start): * gui/simple-greeter/gdm-greeter-session.c: (toggle_panel), (toggle_login_window), (launch_compiz), (launch_metacity), (start_window_manager), (activate_settings_daemon), (gdm_greeter_session_start): * gui/simple-greeter/gdm-session-manager.c: (_change_level), (gdm_session_manager_set_level): * gui/simple-greeter/greeter-main.c: (load_a11y), (main): Add some more profiling stuff. The greeter can now be profiled like so: strace -ttt -f -o /tmp/logfile.strace -p `/sbin/pidof gdm-binary` python plot-timeline.py -o prettygraph.png /tmp/logfile.strace See: http://www.gnome.org/~federico/news-2006-03.html#09 svn path=/trunk/; revision=6053
Diffstat (limited to 'common')
-rw-r--r--common/gdm-profile.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/gdm-profile.h b/common/gdm-profile.h
index 6b4fdd90..78703db6 100644
--- a/common/gdm-profile.h
+++ b/common/gdm-profile.h
@@ -29,9 +29,9 @@ G_BEGIN_DECLS
#ifdef ENABLE_PROFILING
#ifdef G_HAVE_ISO_VARARGS
-#define gdm_profile_start(...) _gdm_profile_log (G_STRFUNC, "start", __VA_ARGDM__)
-#define gdm_profile_end(...) _gdm_profile_log (G_STRFUNC, "end", __VA_ARGDM__)
-#define gdm_profile_msg(...) _gdm_profile_log (NULL, NULL, __VA_ARGDM__)
+#define gdm_profile_start(...) _gdm_profile_log (G_STRFUNC, "start", __VA_ARGS__)
+#define gdm_profile_end(...) _gdm_profile_log (G_STRFUNC, "end", __VA_ARGS__)
+#define gdm_profile_msg(...) _gdm_profile_log (NULL, NULL, __VA_ARGS__)
#elif defined(G_HAVE_GNUC_VARARGS)
#define gdm_profile_start(format...) _gdm_profile_log (G_STRFUNC, "start", format)
#define gdm_profile_end(format...) _gdm_profile_log (G_STRFUNC, "end", format)